real_time

Function real_time 

Source
pub fn real_time() -> i64
Expand description

Queries the system wall-clock time.

This is equivalent to the UNIX gettimeofday() function, but portable.

You should only use this call if you are actually interested in the real wall-clock time. monotonic_time() is probably more useful for measuring intervals.

§Returns

the number of microseconds since January 1, 1970 UTC Queries the system wall-clock time.

This is equivalent to the UNIX gettimeofday() function, but portable.

You should only use this call if you are actually interested in the real wall-clock time. monotonic_time() is probably more useful for measuring intervals.

§Returns

the number of microseconds since January 1, 1970 UTC