WallClock

interface WallClock

A wall clock is a clock which measures the date and time according to some external reference.

External references may be reset, so this clock is not necessarily monotonic, making it unsuitable for measuring elapsed time.

It is intended for reporting the current date and time for humans.

Inheritors

Functions

Link copied to clipboard
abstract fun now(): DateTime

Read the current value of the clock.

Link copied to clipboard
abstract fun resolution(): DateTime

Query the resolution of the clock. The nanoseconds field of the output is always less than 1000000000.