scoop:scoop.std:0.1.0
scoop.time
API
-
interface
Clock
A source of absolute instants. Implementations define accuracy and whether readings can move backward.
-
class
Duration
A signed elapsed duration with nanosecond precision, normalized as floor seconds plus nonnegative fractional nanoseconds. Arithmetic throws on representational overflow.
-
class
Instant
An absolute point on the Unix timeline at nanosecond precision. The supported range corresponds to LocalDate.MIN through LocalDate.MAX in UTC.
-
struct
TimeMark
A relative reading tied to a specific TimeSource instance. Ordering and subtraction between marks from different sources throw.
-
interface
TimeSource
A source of relative time marks whose readings can be compared only within that same source.
-
function
days
Constructs an elapsed duration of this many days with checked overflow.
-
function
hours
Constructs an elapsed duration of this many hours with checked overflow.
-
function
microseconds
Constructs an elapsed duration of this many microseconds with checked overflow.
-
function
milliseconds
Constructs an elapsed duration of this many milliseconds with checked overflow.
-
function
minutes
Constructs an elapsed duration of this many minutes with checked overflow.
-
function
nanoseconds
Constructs an elapsed duration of this many nanoseconds with checked overflow.
-
function
seconds
Constructs an elapsed duration of this many seconds with checked overflow.