www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/07/23:43:15

Date: Mon, 7 Nov 94 16:23:52 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: dolan AT fnoc DOT navy DOT mil
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: clock() problems

> Well, the PC goes at least to 10 nanosecond resolution, even now. There
> are plenty of 100 Mhz '486s out there, so whole nanoseconds is not such
> a reach or so far in the future as to be neglectable.  Probably a lot of
> applications could use profiling to that resolution even today.

No, I meant that the best resolution of the independent timer chips
available on the PC is around a microsecond (OK; 0.8 microsecond, but
who's counting?)  Since there are reliably no timers with better
resolution in a standard PC, there's no point in reporting any finer
resolution.

Perhaps we should set CLOCKS_PER_SEC (or whatever) to 1193046 ?


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019