A simple stopwatch interface to measure elapsed time.
Constructors
Properties
- elapsed → Duration
-
Returns the
elapsedTicks
counter converted to aDuration
.read-only - elapsedMicroseconds → int
-
Returns the
elapsedTicks
counter converted to microseconds.read-only - elapsedMilliseconds → int
-
Returns the
elapsedTicks
counter converted to milliseconds.read-only - elapsedTicks → int
-
Returns the elapsed number of clock ticks since calling
start
while theStopwatch
is running.…read-only - frequency → int
-
Frequency of the elapsed counter in Hz.
read-only - hashCode → int
-
Get a hash code for this object.…
read-only, inherited - isRunning → bool
-
Returns wether the
StopWatch
is currently running.read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.…
inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.…
inherited -
reset(
) → void -
start(
) → void -
stop(
) → void -
toString(
) → String -
Returns a string representation of this object.
inherited