const GLib =;

let timeVal = new GLib.TimeVal({
    tv_sec: value
    tv_usec: value

Represents a precise time, with seconds and microseconds. Similar to the struct timeval returned by the gettimeofday() UNIX system call.

GLib is attempting to unify around the use of 64bit integers to represent microsecond-precision time. As such, this type will be removed from a future version of GLib.