Re: measure the execution time of each thread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




On 04/22/2011 05:00 PM, moktar_bouain wrote:

That's not the "clock tick" that those functions are using, but the
hardware instruction clock.  The system clock is a periodic timer,
used to measure time, that normally runs at 100Hz

Hi Gary,
The problem is that eCos can not measure the time that is less than
millisecond.
How can i change the resolution for the µs or ns?

As I said before, look at how it's done in tm_basic.cxx

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



[Linux Embedded]     [U-Boot V2]     [Linux Kernel]     [Linux MIPS]     [Linux ARM]     [Linux for the Blind]     [Linux Resources]     [Photo]     [Yosemite]     [ISDN Cause Codes]     [ECOS Home]

Add to Google Powered by Linux