SimpleAsyncTimeTracker class
Async actions returning Future will be tracked as single sync time span from the beginning of execution till completion of future
- Inheritance
-
- Object
- SyncTimeTracker
- SimpleAsyncTimeTracker
Constructors
Properties
- duration → Duration
-
The total duration of this operation, equivalent to taking the difference
between stopTime and startTime.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFinished → bool
-
Whether tracking is finished.
no setterinherited
- isStarted → bool
-
Whether tracking was started.
no setterinherited
- isTracking → bool
-
Whether tracking is active.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime
-
When this operation started, call
_start
to set this.no setterinherited - stopTime → DateTime
-
When this operation stopped, call
_stop
to set this.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts to JSON representation
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
track<
T> (T action()) → T -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited