StopWatch

class StopWatch
class Object
trait Matchable
class Any

Type members

Classlikes

object State extends Enumeration

Value members

Concrete methods

def getElapsedTime: Double

Gets the elapsed time since this instance is created in seconds.

Gets the elapsed time since this instance is created in seconds.

Returns

the elapsed time in seconds.

def reportElapsedTime: String
def reset: Unit

Reset the stop watch. The subsequent calls to getElapsedTime or getIntervalTime will measure the time interval beginning from this method call.

Reset the stop watch. The subsequent calls to getElapsedTime or getIntervalTime will measure the time interval beginning from this method call.

def resume: Unit

Resume the timer

Resume the timer

def stop: Double

Stop the timer

Stop the timer

Returns

interval time since the last resume call