Use elapsedTime() method.