14 lines
332 B
Zig
14 lines
332 B
Zig
const std = @import("std");
|
|
|
|
const core = @import("core.zig");
|
|
|
|
// todo, replace with monotonic timer
|
|
pub fn getEngineTime() f64 {
|
|
return @as(f64, @floatFromInt(std.time.milliTimestamp())) / 1000;
|
|
}
|
|
|
|
// return the current system timestamp in nanoseconds
|
|
pub fn getEngineTimeStamp() i128 {
|
|
return std.time.nanoTimestamp();
|
|
}
|