Web lists-archives.com

Re: [Mingw-users] clock_gettime

On 2017-05-29 00:38, DAVENPORT, MARC wrote:
> Is there any chance of clock_gettime being implemented in MinGW? MinGW64 has it but I don't like MinGW64. Source code is public domain. See link below. It would also need at least clockid_t and clock_getcpuclockid.
> https://github.com/mirror/mingw-w64/blob/master/mingw-w64-libraries/winpthreads/src/clock.c#L109

Hmm, their CLOCK_MONOTONIC wraps, and rather quickly too on some machines [1]; it's
nothing more than a dirty hack as it's not monotonic at all.

Unless I'm missing something non-obvious...


[1] I've seen machines wrap the performance counter within the hour, albeit many
    years ago, but the non-handling of the fundamental timer wrap problem persists.

Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
MinGW-users mailing list

This list observes the Etiquette found at
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe