GLib.get_real_time
function get_real_time(): Number(gint64) { // Gjs wrapper for g_get_real_time() }
Queries the system wall-clock time.
This call is functionally equivalent to GLib.get_current_time except that the return value is often more convenient than dealing with a GLib.TimeVal.
You should only use this call if you are actually interested in the real wall-clock time. GLib.get_monotonic_time is probably more useful for measuring intervals.
Since 2.28
- Returns
the number of microseconds since January 1, 1970 UTC.