dart / 1 / dart-core / stopwatch / stopwatch.html

Stopwatch constructor

Stopwatch()

Creates a Stopwatch in stopped state with a zero elapsed count.

The following example shows how to start a Stopwatch immediately after allocation.

var stopwatch = new Stopwatch()..start();

Source

Stopwatch() {
  if (_frequency == null) _initTicker();
}

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