glib

Function real_time

Source
pub fn real_time() -> i64
Expand description

Queries the system wall-clock time.

This call is functionally equivalent to get_current_time() except that the return value is often more convenient than dealing with a #GTimeVal.

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 call is functionally equivalent to get_current_time() except that the return value is often more convenient than dealing with a #GTimeVal.

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.