Clock constructor

Clock([
  1. bool autoStart = true
])

/ autoStart — (optional) whether to automatically start the clock when getDelta is called for the first time. Default is true.

Implementation

Clock([this.autoStart = true]) {
  startTime = 0;
  oldTime = 0;
  elapsedTime = 0;
  running = false;
}