diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-10-22 08:06:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-22 08:06:47 -0400 |
| commit | 0c99ba1eab63865592bb084feb271cd4e4b0357e (patch) | |
| tree | 7004c99fc0619ff94317cc176900d1d3a3c88335 /lib/std/time.zig | |
| parent | 5f92b070bf284f1493b1b5d433dd3adde2f46727 (diff) | |
| parent | 920e9668ddb16fbb98cd08b43ed2364062a4b102 (diff) | |
| download | zig-0c99ba1eab63865592bb084feb271cd4e4b0357e.tar.gz zig-0c99ba1eab63865592bb084feb271cd4e4b0357e.zip | |
Merge pull request #17637 from jacobly0/x86_64-test-std
x86_64: start to enable `test-std` and `test-compiler-rt` testing
Diffstat (limited to 'lib/std/time.zig')
| -rw-r--r-- | lib/std/time.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/time.zig b/lib/std/time.zig index c078e97793..1948decdf8 100644 --- a/lib/std/time.zig +++ b/lib/std/time.zig @@ -122,6 +122,8 @@ pub fn nanoTimestamp() i128 { } test "timestamp" { + if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; + const margin = ns_per_ms * 50; const time_0 = milliTimestamp(); @@ -319,6 +321,8 @@ pub const Timer = struct { }; test "Timer + Instant" { + if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; + const margin = ns_per_ms * 150; var timer = try Timer.start(); |
