From 937dcad0b3802863af0891b2766acb55f89949ba Mon Sep 17 00:00:00 2001 From: Sebastian <15335529+Sobeston@users.noreply.github.com> Date: Mon, 1 Jun 2020 19:42:17 +0100 Subject: [PATCH] fixed timestamp() --- lib/std/time.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/time.zig b/lib/std/time.zig index 8fb2b79fd2..6a0b9a13aa 100644 --- a/lib/std/time.zig +++ b/lib/std/time.zig @@ -53,7 +53,7 @@ pub fn sleep(nanoseconds: u64) void { /// before the epoch. /// See `std.os.clock_gettime` for a POSIX timestamp. pub fn timestamp() i64 { - return @divFloor(milliTimestamp(), ns_per_s); + return @divFloor(milliTimestamp(), ms_per_s); } /// Get a calendar timestamp, in milliseconds, relative to UTC 1970-01-01.