X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sun, 7 Jul 2013 23:52:51 -0400 Message-Id: <201307080352.r683qpTu018327@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <5fbc6fac-c8c5-4bc7-8dc5-9b6b740b24c6@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> <201307080318 DOT r683IKof016817 AT delorie DOT com> <5fbc6fac-c8c5-4bc7-8dc5-9b6b740b24c6 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 > Does clock() in DJGPP wrap around after a certain amount of seconds > elapsed as stated by that website that I quoted above? Because of the way DOS ticks work, clock() is not supposed to be used across two midnights. As long as you call it at least once per day, it should wrap normally every 17 months or so.