Merge pull request #989 from lightpanda-io/clocks

Improve clocks
This commit is contained in:
Pierre Tachoire
2025-09-01 08:11:05 +02:00
committed by GitHub
7 changed files with 61 additions and 45 deletions

View File

@@ -905,8 +905,7 @@ fn buildJSONVersionResponse(
}
fn timestamp() u32 {
const ts = std.posix.clock_gettime(std.posix.CLOCK.MONOTONIC) catch unreachable;
return @intCast(ts.sec);
return @import("datetime.zig").timestamp();
}
// In-place string lowercase