TimeVal


Object Hierarchy:

GLib.TimeVal GLib.TimeVal GLib.TimeVal

Description:

[ Version ( deprecated_since = "2.62" ) ]
[ CCode ( has_type_id = false ) ]
public struct TimeVal

Warning: TimeVal is deprecated since 2.62.

Represents a precise time, with seconds and microseconds.

Note:

Use DateTime or uint64 instead.

Similar to the struct timeval returned by the `gettimeofday()` UNIX system call.

GLib is attempting to unify around the use of 64-bit integers to represent microsecond-precision time. As such, this type will be removed from a future version of GLib. A consequence of using `glong` for `tv_sec` is that on 32-bit systems `GTimeVal` is subject to the year 2038 problem.


Namespace: GLib
Package: glib-2.0

Content:

Creation methods:

Methods:

Fields: