mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
io: make toClock compile
This commit is contained in:
+1
-1
@@ -890,7 +890,7 @@ pub const Clock = enum {
|
||||
if (t.clock == clock) return t;
|
||||
const now_old = t.clock.now(io);
|
||||
const now_new = clock.now(io);
|
||||
const duration = now_old.durationTo(t);
|
||||
const duration = now_old.durationTo(t.raw);
|
||||
return .{
|
||||
.clock = clock,
|
||||
.raw = now_new.addDuration(duration),
|
||||
|
||||
Reference in New Issue
Block a user