W3cubDocs

/Dart 2

Stopwatch class

A simple stopwatch interface to measure elapsed time.

Constructors

Stopwatch()
Creates a Stopwatch in stopped state with a zero elapsed count. [...]

Properties

elapsedDuration
read-only
The elapsedTicks counter converted to a Duration.
elapsedMicrosecondsint
read-only
The elapsedTicks counter converted to microseconds.
elapsedMillisecondsint
read-only
The elapsedTicks counter converted to milliseconds.
elapsedTicksint
read-only
The elapsed number of clock ticks since calling start while the Stopwatch is running. [...]
frequencyint
read-only
Frequency of the elapsed counter in Hz.
isRunningbool
read-only
Whether the Stopwatch is currently running.
hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

reset() → void
Resets the elapsed count to zero. [...]
start() → void
Starts the Stopwatch. [...]
stop() → void
Stops the Stopwatch. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-core/Stopwatch-class.html