RealClock class
真实的时钟:DateTime.now、Stopwatch 和 Timer。
- Implemented types
Constructors
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
-
monotonic(
) → int -
单调时钟(毫秒),用于计算间隔,不受修改系统时间的影响。
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
now(
) → int -
本地时钟(毫秒)。
override
-
setTimeout(
void callback(), int ms) → TimerHandle -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited