refactor: time -> clock

This commit is contained in:
Loïc Grégoire
2026-04-18 14:07:42 -04:00
parent a1db75746a
commit 44cf08e57c
13 changed files with 95 additions and 83 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ fn tc_read() u64 {
return @intCast(ts.sec * std.time.ns_per_s + ts.nsec);
}
var tc: ke.TimeCounter = .{
var tc: ke.ClockSource = .{
.read_count = tc_read,
.frequency = std.time.ns_per_s,
.name = "CLOCK_MONOTONIC",
@@ -59,7 +59,7 @@ pub fn init() void {
posix.sigaction(posix.SIG.ALRM, &act, null);
ke.time.register_source(&tc);
ke.clock.register_source(&tc);
}
pub fn init_cpu() void {