Clock constructor

Clock([
  1. bool? autoStart
])

Implementation

Clock([bool? autoStart]) {
  this.autoStart = (autoStart != null) ? autoStart : true;

  startTime = 0;
  oldTime = 0;
  elapsedTime = 0;

  running = false;
}