From: Wolfgang Denk Date: Wed, 17 Nov 2004 21:19:16 +0100 Subject: [U-Boot-Users] get_timer documentation In-Reply-To: Your message of "Wed, 17 Nov 2004 20:02:39 +0100." <20041117200239.2c48dc54.cialdi@firenze.net> Message-ID: <20041117201921.07A9CC1430@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <20041117200239.2c48dc54.cialdi@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.