ExecutionWatch class
Container for all timers within a given group and name combination.
Constructors
- ExecutionWatch({String group = _kDefaultGroup, required String name, TimerPrecision precision = TimerPrecision.millisecond})
-
Creates a new watch. However, if TimeKeeper.enabled returns false then
this will actually return a watch that does nothing.
factory
Properties
- group → String
-
The group for the watch and timers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the watch and timers within the group.
final
- precision → TimerPrecision
-
The precision to use for the timers. You may which to use
TimerPrecision.millisecond for relatively long running tasks and
TimerPrecision.microsecond for multiple, very fast, timers.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
timers
→ List<
ExecutionTimer> -
Returns all the timers within this watch.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → ExecutionTimer - Starts a new timer within this watch.
-
toJson(
[bool verbose = false]) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited