SystemTimeProvider class

Default TimeProvider backed by DateTime.now.

On native (VM, AOT, FFI): microsecond precision. On Dart-on-JS web: millisecond precision (the browser ceiling on Date.now()). Use WebTimeProvider on web for sub-millisecond timing.

Implemented types

Constructors

SystemTimeProvider()
Constructs the default time provider. const-constructible so it can serve as a default-parameter value.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
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
nowDateTime() → DateTime
Returns the current wall-clock time as a DateTime.
override
toString() → String
A string representation of this object.
inherited

Operators

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