mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
std.Io.Threaded: correct clockToPosix for FreeBSD
This commit is contained in:
parent
ef55dcae67
commit
cc751c01f1
@ -5006,6 +5006,9 @@ fn clockToPosix(clock: Io.Clock) posix.clockid_t {
|
||||
},
|
||||
.boot => switch (native_os) {
|
||||
.macos, .ios, .watchos, .tvos => posix.CLOCK.MONOTONIC_RAW,
|
||||
// On freebsd derivatives, use MONOTONIC_FAST as currently there's
|
||||
// no precision tradeoff.
|
||||
.freebsd, .dragonfly => posix.CLOCK.MONOTONIC_FAST,
|
||||
else => posix.CLOCK.BOOTTIME,
|
||||
},
|
||||
.cpu_process => posix.CLOCK.PROCESS_CPUTIME_ID,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user