Clockid

WASI Preview1 type $clockid

Identifiers for clocks.

TAG: u32

Definition:

(typename $clockid
(enum (@witx tag u32)
;;; The clock measuring real time. Time value zero corresponds with
;;; 1970-01-01T00:00:00Z.
$realtime
;;; The store-wide monotonic clock, which is defined as a clock measuring
;;; real time, whose value cannot be adjusted and which cannot have negative
;;; clock jumps. The epoch of this clock is undefined. The absolute time
;;; value of this clock therefore has no meaning.
$monotonic
;;; The CPU-time clock associated with the current process.
$process_cputime_id
;;; The CPU-time clock associated with the current thread.
$thread_cputime_id
)
)

Entries

Link copied to clipboard

The clock measuring real time. Time value zero corresponds with 1970-01-01T00:00:00Z.

Link copied to clipboard

The store-wide monotonic clock, which is defined as a clock measuring real time, whose value cannot be adjusted and which cannot have negative clock jumps. The epoch of this clock is undefined. The absolute time value of this clock therefore has no meaning.

Link copied to clipboard

The CPU-time clock associated with the current process.

Link copied to clipboard

The CPU-time clock associated with the current thread.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val code: Int

Functions

Link copied to clipboard
fun valueOf(value: String): Clockid

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.