On Thu, Jul 05, 2018 at 09:28:34AM -0400, Scott Cheloha wrote: > > On Jul 5, 2018, at 6:51 AM, Paul Irofti <[email protected]> wrote: > > > > [...] > > From [1]: > > > The value of CLOCKS_PER_SEC shall be 1 million on XSI-conformant systems. > > However, it may be variable on other systems, and it should not be assumed > > that CLOCKS_PER_SEC is a compile-time constant. > > [...] > > Having it set to a million also introduces issues with overflow for interfaces > like clock(3), although even POSIX now acknowledges this issue and recommends > other interfaces.
... issues with overflow if clock_t is 32-bit. clock_t has been 64-bit since 2013, but CLOCKS_PER_SEC was 100 before then.
