+ else version (OpenBSD)
+ {
+ import core.sys.openbsd.time;
+ with(ClockType) final switch (clockType)
+ {
+ case bootTime: return CLOCK_BOOTTIME;
+ case coarse: return CLOCK_MONOTONIC;
+ case normal: return CLOCK_MONOTONIC;
+ case precise: return CLOCK_MONOTONIC;
+ case processCPUTime: return CLOCK_PROCESS_CPUTIME_ID;
+ case threadCPUTime: return CLOCK_THREAD_CPUTIME_ID;
+ case uptime: return CLOCK_UPTIME;
+ case second: assert(0);
+ }
+ }