StopWatch

wvlet.log.io.StopWatch
class StopWatch

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

object State extends Enumeration

Attributes

Supertypes
class Enumeration
trait Serializable
class Object
trait Matchable
class Any
Self type
State.type

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.

Attributes

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.

Attributes

def resume: Unit

Resume the timer

Resume the timer

Attributes

def stop: Double

Stop the timer

Stop the timer

Attributes

Returns

interval time since the last resume call