Clock class abstract interface

Abstract source of monotonic elapsed time.

"Now" is a Duration since some implementation-defined epoch. The epoch is not meaningful — only differences between two readings are. Implementations must guarantee monotonic non- decrease: a later call to now must return a value >= the value returned by an earlier call.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
now → Duration
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited