Spec-Zone.ru › Dart 2

dart:core

метод start

void start()

Запускает Stopwatch.

Значение elapsed монотонно увеличивается. Если Stopwatch остановлен, повторный вызов start запускает его снова, не сбрасывая значение elapsed.

Если Stopwatch уже запущен, вызов start ничего не делает.

Реализация

void start() {
  int? stop = _stop;
  if (stop != null) {
    // (Re)start this stopwatch.
    // Don't count the time while the stopwatch has been stopped.
    _start += _now() - stop;
    _stop = null;
  }
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-core/Stopwatch/start.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API