authorgravatar for 15335529+Sobeston@users.noreply.github.comSebastian <15335529+Sobeston@users.noreply.github.com> 2020-06-01 19:42:17+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-06-01 14:43:13-04:00
log937dcad0b3802863af0891b2766acb55f89949ba
tree5807e9f45c9625445e8ede4c07dfe7c0ae0786a5
parent215a0d61ab50703e38111c2762ee735b1e097358

fixed timestamp()


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

lib/std/time.zig+1-1
...@@ -53,7 +53,7 @@ pub fn sleep(nanoseconds: u64) void {...@@ -53,7 +53,7 @@ pub fn sleep(nanoseconds: u64) void {
53/// before the epoch.53/// before the epoch.
54/// See `std.os.clock_gettime` for a POSIX timestamp.54/// See `std.os.clock_gettime` for a POSIX timestamp.
55pub fn timestamp() i64 {55pub fn timestamp() i64 {
56 return @divFloor(milliTimestamp(), ns_per_s);56 return @divFloor(milliTimestamp(), ms_per_s);
57}57}
5858
59/// Get a calendar timestamp, in milliseconds, relative to UTC 1970-01-01.59/// Get a calendar timestamp, in milliseconds, relative to UTC 1970-01-01.