This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: how to link "gettimeofday" with arm-elf-gcc?
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Yusuke Matsuoka <yusuke at ee dot ucla dot edu>
- Cc: 'Andrew Lunn' <andrew at lunn dot ch>, 'Gary Thomas' <gary at mlbassoc dot com>,ecos-discuss at sources dot redhat dot com
- Date: Thu, 20 Nov 2003 23:40:47 +0100
- Subject: Re: [ECOS] how to link "gettimeofday" with arm-elf-gcc?
- References: <20031120220619.GE2130@lunn.ch> <001101c3afb6$7eac0fe0$99596180@worldcup>
On Thu, Nov 20, 2003 at 02:34:43PM -0800, Yusuke Matsuoka wrote:
> Hi Andrew and Gary,
>
> Thanks for the reply.
>
> I want to run the KVM(K virtual machine for Java) on eCos and
> want to measure the exec time of my Java application on the board.
> The original KVM implementation uses "gettimeofday", and I got
> the linker error.
>
> Since I need a *millisecond* resolution, is there a better way
> rather than including snmp?
cyg_current_time() will return the number of 10ms ticks since the
scheduler was started.
Or you could run the test program 1,000,000 times and use a wallclock!
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss