Метод 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.18.5/dart-core/Stopwatch/start.html