MicrosecondsClock

Members

Aliases

timeval
alias timeval = .timeval

timeval struct alias, defined as

Static functions

now
timeval now()

Usage tips: use

now_us
ulong now_us()
toDateTime
DateTime toDateTime(timeval t, ulong us)

Converts t to a DateTime struct, specifying the year, months, days, hours, minutes, seconds, and milliseconds, plus the microseconds via an out parameter.

toTm
tm toTm(time_t t, bool local)

Converts t to a tm struct, specifying the year, months, days, hours, minutes, and seconds.

toTm
tm toTm(timeval t, ulong us)

Converts t to a tm struct, specifying the year, months, days, hours, minutes, and seconds, plus the microseconds via an out parameter.

us
ulong us(timeval t)

Converts t to a single integer value representing the number of microseconds.

Meta