TimeVal

class TimeVal(val glibTimeValPointer: <Error class: unknown class><<Error class: unknown class>>) : ProxyInstance(source)

⚠️ Deprecated ⚠️

This is deprecated since version 2.62.

Use #GDateTime or #guint64 instead.

---

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()

Allocate a new TimeVal.

constructor(scope: <Error class: unknown class>)

Allocate a new TimeVal using the provided AutofreeScope.

constructor(tvSec: <Error class: unknown class>, tvUsec: <Error class: unknown class>)

Allocate a new TimeVal.

constructor(tvSec: <Error class: unknown class>, tvUsec: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new TimeVal using the provided AutofreeScope.

constructor(glibTimeValPointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val glibTimeValPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>
Link copied to clipboard
var tvSec: <Error class: unknown class>

seconds

Link copied to clipboard
var tvUsec: <Error class: unknown class>

microseconds

Functions

Link copied to clipboard
fun add(microseconds: <Error class: unknown class>)

This is deprecated since version 2.62.

Link copied to clipboard
open override fun addCleaner(cleaner: <Error class: unknown class>): Boolean

Registers a cleaner to be executed when this proxy object is garbage collected.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compare two proxy instances for equality. This will compare both the type of the instances, and their memory addresses.

Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun removeCleaner(cleaner: <Error class: unknown class>): Boolean

Removes a previously registered cleaner from this proxy object.

Link copied to clipboard

This is deprecated since version 2.62.

Link copied to clipboard
open override fun toString(): String