Function microTimestamp [src]

Get a calendar timestamp, in microseconds, relative to UTC 1970-01-01. Precision of timing depends on the hardware and operating system. The return value is signed because it is possible to have a date that is before the epoch. See posix.clock_gettime for a POSIX timestamp.

Prototype

pub fn microTimestamp() i64

Source

pub fn microTimestamp() i64 { return @as(i64, @intCast(@divFloor(nanoTimestamp(), ns_per_us))); }