aboutsummaryrefslogtreecommitdiff
path: root/lib/std/time.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-10-22 08:06:47 -0400
committerGitHub <noreply@github.com>2023-10-22 08:06:47 -0400
commit0c99ba1eab63865592bb084feb271cd4e4b0357e (patch)
tree7004c99fc0619ff94317cc176900d1d3a3c88335 /lib/std/time.zig
parent5f92b070bf284f1493b1b5d433dd3adde2f46727 (diff)
parent920e9668ddb16fbb98cd08b43ed2364062a4b102 (diff)
downloadzig-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.zig4
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();