get_real_time


Description:

[ Version ( since = "2.28" ) ]
public int64 get_real_time ()

Queries the system wall-clock time.

This is equivalent to the UNIX [`gettimeofday()`](man:gettimeofday(2)) function, but portable.

You should only use this call if you are actually interested in the real wall-clock time. [func@GLib.get_monotonic_time] is probably more useful for measuring intervals.

Returns:

the number of microseconds since January 1, 1970 UTC


Namespace: GLib
Package: glib-2.0