GLib.Source.prototype.get_time

function get_time(): Number(gint64) {
    // Gjs wrapper for g_source_get_time()
}
  

Gets the time to be used when checking this source. The advantage of calling this function over calling GLib.get_monotonic_time directly is that when checking multiple sources, GLib can cache a single value instead of having to repeatedly get the system monotonic time.

The time here is the system monotonic time, if available, or some other reasonable alternative otherwise. See GLib.get_monotonic_time.

Since 2.28

Returns

the monotonic time in microseconds