mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-31 23:38:21 +00:00
refactor: time -> clock
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user