This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
clock() on ARM has 1-second accuracy?
- From: David Kramer <david at thekramers dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 3 Dec 2004 10:37:22 -0500 (EST)
- Subject: clock() on ARM has 1-second accuracy?
We have an Arm 7T developer's board, and have started programming it.
We're finding that clock() seems to change it's output only once a second.
Yes, it's scaled to CLOCKS_PER_SEC, but one-second resolution is
insufficient.
Can someone confirm this for me?
Is there a higher-resolution timer?
Thanks.
-------------------------------------------------------------------
DDDD David Kramer http://thekramers.net
DK KD
DKK D "Remember folks - Traffic lights timed for 35 mph
DK KD are also timed for 70 mph."
DDDD Jim Samuels