start method

void start()

Starts clock. Also sets the startTime and oldTime to the current time, sets elapsedTime to 0 and running to true.

Implementation

void start() {
  startTime = now();

  oldTime = startTime;
  elapsedTime = 0;
  running = true;
  fps = 0;
}