Zig 0.16: std.time.Timer -> std.Io.Timestamp

This commit is contained in:
LN Liberda 2026-05-22 20:53:55 +02:00
parent 1d577abefe
commit 6862d1d5cb

View file

@ -552,7 +552,7 @@ pub fn main(init: std.process.Init) void {
ui.die("Standard input is not a TTY. Did you mean to import a file using '-f -'?\n", .{});
config.nc_tty = !in_tty or (if (export_json orelse export_bin) |f| std.mem.eql(u8, f, "-") else false);
event_delay_timer = std.time.Timer.start() catch unreachable;
event_delay_timer = std.Io.Timestamp.now(io, .awake);
defer ui.deinit();
if (export_json) |f| {
@ -627,7 +627,7 @@ pub fn main(init: std.process.Init) void {
}
}
pub var event_delay_timer: std.time.Timer = undefined;
pub var event_delay_timer: std.Io.Timestamp = undefined;
// Draw the screen and handle the next input event.
// In non-blocking mode, screen drawing is rate-limited to keep this function fast.