X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sun, 7 Jul 2013 23:18:20 -0400 Message-Id: <201307080318.r683IKof016817@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <930fe945-22b9-4000-80fc-e42858b8f498@googlegroups.com> (lordwilliams1972 AT gmail DOT com) Subject: Re: CLOCKS_PER_SEC of time.h doesn't work to prove it is a value for one second References: <201307072036 DOT r67KanNk031567 AT delorie DOT com> <930fe945-22b9-4000-80fc-e42858b8f498 AT googlegroups DOT com> Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk I *am* familiar with how clock() is implemented in DJGPP, and the code takes the raw tick count, and multiplies it by 5. I.e. despite there being 91 clocks per second, if you measure the number of clocks in a *specific* second, sometimes you get 95 and sometimes you get 90. If you calculate the difference between two clock() calls over a *long* time, the average is 91 clocks per second.