authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-10 01:43:16 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-10 01:43:16 -07:00
log70ef29a006ceed7379df8801e3889da197de36ce
tree74104eb455a2215515390bf4b8747144ba30565e
parenta255e7229febed17d9ff3eddec7252b38ed7b594
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add timestamp


1 files changed, 4 insertions(+), 0 deletions(-)

time.zig+4
......@@ -581,6 +581,10 @@ pub fn milliTimestamp() i64 {
581581 return @as(i64, @intCast(@divFloor(nanoTimestamp(), ns_per_ms)));
582582}
583583
584pub fn timestamp() i64 {
585 return @as(i64, @intCast(@divFloor(nanoTimestamp(), ns_per_s)));
586}
587
584588pub const Instant = struct {
585589 timestamp_ns: u64,
586590