org.specs.util.SimpleTimer

class SimpleTimer

class SimpleTimer

 extends HmsTimer


Default class for the HmsTimer trait


Source: Timer.scala(96)

 Constructors

def this

 Fields

elapsed var elapsed
elapsed time since the last stop
Long HmsTimer
getTime protected def getTime
this method can be overriden for testing
Long HmsTimer
hms def hms
[details]
return
- a formatted string showing the hours, minutes and seconds
String HmsTimer
millis var millis
current number of millis when instantiating the object using this Trait
Stack[Long] HmsTimer
preciseTime def preciseTime
[details]
return
- a formatted string showing the hours, minutes, seconds and millis
String HmsTimer
stop def stop
Stop the timer, store the number of elapsed millis and return a String representing the time as hour/minute/second/ms [details]
return
- the elapsed time as a String
String HmsTimer
time def time String HmsTimer

 Methods

!= final def !=(arg0 : Object) Boolean AnyRef
!= final def !=(arg0 : Any) Boolean Any
== final def ==(arg0 : Any) Boolean Any
== final def ==(arg0 : Object) Boolean AnyRef
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
finalize protected def finalize Unit AnyRef
getClass final def getClass Class[Object] AnyRef
hashCode def hashCode Int AnyRef
hourMinutesSecondsMillis def hourMinutesSecondsMillis
[details]
return
- a tuple with the elapsed hours, minutes, seconds and millis
(Long, Long, Long, Long) HmsTimer
isInstanceOf final def isInstanceOf[T0] Boolean Any
ne final def ne(arg0 : Object) Boolean AnyRef
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
restart def restart
restarts the Timer with no elapsed time
Unit HmsTimer
start def start
starts the with new elapsed time
Unit HmsTimer
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString def toString String AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait Unit AnyRef
Copyright (c) 2007-2009. All Rights Reserved.