[U-Boot-Users] get_timer documentation

Wolfgang Denk wd at denx.de
Wed Nov 17 21:19:16 CET 2004


In message <20041117200239.2c48dc54.cialdi at firenze.net> you wrote:
> We use coldfire 5282
> 
> We need to know what is the parameter and return value of get_timer()

Maybe having a short look in the source code brings some ideas?

> we wnat to use get_timer() to calculate time intervals in millisecond.

Yea, that's what it's intended for.

> something like:
> 
> ....
> a = get_timer(0);
> /* do something */
> b = get_timer(0);
> ....
> 
> in this case what is the measure unit of b-a?

milliseconds.

And why not simply:
	a = get_timer(0);
	/* do something */
	millisecs = get_timer(a);

???

> How can I obtain millisicends?

I don't know. What's a sicend?


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
An expert is a person who avoids the small errors while  sweeping  on
to the grand fallacy.




More information about the U-Boot mailing list