clock() on ARM has 1-second accuracy?

David Kramer
Fri Dec 3 15:37:00 GMT 2004

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 

Can someone confirm this for me?
Is there a higher-resolution timer?


DDDD   David Kramer                 
DKK D  "Remember folks - Traffic lights timed for 35 mph
DK KD  are also timed for 70 mph."
DDDD                                                    Jim Samuels 

More information about the Gcc-help mailing list