public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* clock() on ARM has 1-second accuracy?
@ 2004-12-03 15:37 David Kramer
  0 siblings, 0 replies; only message in thread
From: David Kramer @ 2004-12-03 15:37 UTC (permalink / raw)
  To: gcc-help

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 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-03 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-03 15:37 clock() on ARM has 1-second accuracy? David Kramer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).