getElapsedTime method

double getElapsedTime()

Get the seconds passed since the clock started and sets oldTime to the current time.

If autoStart is true and the clock is not running, also starts the clock.

Implementation

double getElapsedTime() {
  getDelta();
  return elapsedTime;
}