Why doesn't mktspec() use clock_gettime?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 9 18:03:15 PST 2015


cc Sean Kelly

https://github.com/D-Programming-Language/druntime/blob/master/src/core/sync/config.d#L28

Looks like that use has been disable with static if (false). What was 
the reason?

A coworker spent a few hours debugging a matter that pointed to this 
issue. He removed the "false" and replaced CLOCK_REALTIME with 
CLOCK_MONOTONIC in our druntime tree.

Any insight into the matter? How should we address it by supporting 
multiple clock types portably?


Thanks,

Andrei


More information about the Digitalmars-d mailing list