diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-05-24 20:06:56 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-05-24 21:40:08 -0400 |
| commit | 53d011fa1a7bfb2389e3677e1f6fcbe7a678e05f (patch) | |
| tree | 6dc248d8606088f7a288c00f6ccef78290229cf4 /lib/std/event/loop.zig | |
| parent | c6e7d0fcfdf83531c5c931433528c540eee62e56 (diff) | |
| download | zig-53d011fa1a7bfb2389e3677e1f6fcbe7a678e05f.tar.gz zig-53d011fa1a7bfb2389e3677e1f6fcbe7a678e05f.zip | |
(breaking) std.time fixups and API changes
Remove the constants that assume a base unit in favor of explicit
x_per_y constants.
nanosecond calendar timestamps now use i128 for the type. This affects
fs.File.Stat, std.time.nanoTimestamp, and fs.File.updateTimes.
calendar timestamps are now signed, because the value can be less than
the epoch (the user can set their computer time to whatever they wish).
implement std.os.clock_gettime for Windows when clock id is
CLOCK_CALENDAR.
Diffstat (limited to 'lib/std/event/loop.zig')
| -rw-r--r-- | lib/std/event/loop.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig index 607e2f24ca..0abcad32e1 100644 --- a/lib/std/event/loop.zig +++ b/lib/std/event/loop.zig @@ -457,7 +457,7 @@ pub const Loop = struct { => { // Even poll() didn't work. The best we can do now is sleep for a // small duration and then hope that something changed. - std.time.sleep(1 * std.time.millisecond); + std.time.sleep(1 * std.time.ns_per_ms); }, }; resume @frame(); |
