TimeVal


Description:

[ CCode ( cname = "g_get_current_time" ) ]
public TimeVal ()

Queries the system wall-clock time.

Note:

[struct@GLib.TimeVal] is not year-2038-safe. Use [func@GLib.get_real_time] instead.

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

You may find [func@GLib.get_real_time] to be more convenient.

Parameters:

result

[struct@GLib.TimeVal] structure in which to store current time