TimeVal

class TimeVal(pointer: <Error class: unknown class><<Error class: unknown class>>) : Record

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 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.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion : RecordCompanion<TimeVal, <Error class: unknown class>>

Properties

Link copied to clipboard
val glibTimeValPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
var tvSec: Long

seconds

Link copied to clipboard

microseconds

Functions

Link copied to clipboard
fun add(microseconds: Long)

Adds the given number of microseconds to @time_. @microseconds can also be negative to decrease the value of @time_.

Link copied to clipboard

Converts @time_ into an RFC 3339 encoded string, relative to the Coordinated Universal Time (UTC). This is one of the many formats allowed by ISO 8601.