pub fn durationFromNow(timestamp: Clock.Timestamp, io: Io) Clock.Duration
Resolution is determined by resolution which may be 0 if the clock is unsupported.
resolution
timestamp: Clock.Timestamp
io: Io
972 973 974 975 976 977 978
pub fn durationFromNow(timestamp: Clock.Timestamp, io: Io) Clock.Duration { const now_ts = timestamp.clock.now(io); return .{ .clock = timestamp.clock, .raw = now_ts.durationTo(timestamp.raw), }; }
Resolution is determined by
resolutionwhich may be 0 if the clock is unsupported.