| ... | @@ -13,7 +13,7 @@ pub const epoch = @import("epoch.zig"); | ... | @@ -13,7 +13,7 @@ pub const epoch = @import("epoch.zig"); |
| 13 | /// Sleep for the specified duration | 13 | /// Sleep for the specified duration |
| 14 | pub fn sleep(nanoseconds: u64) void { | 14 | pub fn sleep(nanoseconds: u64) void { |
| 15 | switch (builtin.os) { | 15 | switch (builtin.os) { |
| 16 | Os.linux, Os.macosx, Os.ios => { | 16 | Os.linux, Os.macosx, Os.ios, Os.freebsd => { |
| 17 | const s = nanoseconds / ns_per_s; | 17 | const s = nanoseconds / ns_per_s; |
| 18 | const ns = nanoseconds % ns_per_s; | 18 | const ns = nanoseconds % ns_per_s; |
| 19 | posixSleep(@intCast(u63, s), @intCast(u63, ns)); | 19 | posixSleep(@intCast(u63, s), @intCast(u63, ns)); |