Skip to content

Commit 937dcad

Browse files
Sobestonandrewrk
authored andcommitted
fixed timestamp()
1 parent 215a0d6 commit 937dcad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/time.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub fn sleep(nanoseconds: u64) void {
5353
/// before the epoch.
5454
/// See `std.os.clock_gettime` for a POSIX timestamp.
5555
pub fn timestamp() i64 {
56-
return @divFloor(milliTimestamp(), ns_per_s);
56+
return @divFloor(milliTimestamp(), ms_per_s);
5757
}
5858

5959
/// Get a calendar timestamp, in milliseconds, relative to UTC 1970-01-01.

0 commit comments

Comments
 (0)