mirror of
https://git.xeondev.com/LR/S.git
synced 2026-03-22 07:32:21 +01:00
chore(build!): update to zig 0.16.0-dev.2510+bcb5218a2
This commit is contained in:
@@ -15,10 +15,7 @@ pub const PingTimer = struct {
|
||||
last_client_ts: u64 = 0,
|
||||
|
||||
pub fn serverTime(pt: PingTimer) u64 {
|
||||
return if (Io.Clock.real.now(pt.io)) |ts|
|
||||
@intCast(ts.toMilliseconds())
|
||||
else |_|
|
||||
pt.last_client_ts;
|
||||
return @intCast(Io.Clock.real.now(pt.io).toMilliseconds());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user