all: move mach.Timer, core Timer/Frequency to mach.time module
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
d62ddbb6cd
commit
133c89638b
16 changed files with 90 additions and 110 deletions
|
|
@ -20,10 +20,10 @@ var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
|||
|
||||
info_text: mach.EntityID,
|
||||
info_text_style: mach.EntityID,
|
||||
timer: mach.Timer,
|
||||
timer: mach.time.Timer,
|
||||
gotta_go_fast: bool = false,
|
||||
spawn_timer: mach.Timer,
|
||||
fps_timer: mach.Timer,
|
||||
spawn_timer: mach.time.Timer,
|
||||
fps_timer: mach.time.Timer,
|
||||
frame_count: usize,
|
||||
frame_rate: usize,
|
||||
num_sprites_spawned: usize,
|
||||
|
|
@ -141,9 +141,9 @@ fn init(
|
|||
app.init(.{
|
||||
.info_text = info_text,
|
||||
.info_text_style = style1,
|
||||
.timer = try mach.Timer.start(),
|
||||
.spawn_timer = try mach.Timer.start(),
|
||||
.fps_timer = try mach.Timer.start(),
|
||||
.timer = try mach.time.Timer.start(),
|
||||
.spawn_timer = try mach.time.Timer.start(),
|
||||
.fps_timer = try mach.time.Timer.start(),
|
||||
.frame_count = 0,
|
||||
.frame_rate = 0,
|
||||
.num_sprites_spawned = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue