all: move mach.Timer, core Timer/Frequency to mach.time module

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-08-25 14:24:09 -07:00
parent d62ddbb6cd
commit 133c89638b
16 changed files with 90 additions and 110 deletions

View file

@ -11,7 +11,7 @@ pub const systems = .{
.tick = .{ .handler = tick },
};
title_timer: mach.Timer,
title_timer: mach.time.Timer,
pipeline: *gpu.RenderPipeline,
pub fn deinit(core: *mach.Core.Mod, app: *Mod) void {
@ -62,7 +62,7 @@ fn init(app: *Mod, core: *mach.Core.Mod) !void {
// Store our render pipeline in our module's state, so we can access it later on.
app.init(.{
.title_timer = try mach.Timer.start(),
.title_timer = try mach.time.Timer.start(),
.pipeline = pipeline,
});
try updateWindowTitle(core);