| ... | @@ -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. |
| 55 | pub fn timestamp() i64 { | 55 | pub fn timestamp() i64 { |
| 56 | return @divFloor(milliTimestamp(), ns_per_s); | 56 | return @divFloor(milliTimestamp(), ms_per_s); |
| 57 | } | 57 | } |
| 58 | | 58 | |
| 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. |