|
|
|
|
|
by holsta
806 days ago
|
|
I did, but there are literal compile-time checks for various platforms. pub fn monotonic(self: *Self) u64 {
const m = blk: {
if (is_windows) break :blk monotonic_windows();
if (is_darwin) break :blk monotonic_darwin();
if (is_linux) break :blk monotonic_linux();
@compileError("unsupported OS");
};
|
|