class SimpleTimer extends HmsTimer[SimpleTimer]
- Alphabetic
- By Inheritance
- SimpleTimer
- HmsTimer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SimpleTimer()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add(t: HmsTimer[SimpleTimer]): SimpleTimer
add 2 timers together
add 2 timers together
- Definition Classes
- HmsTimer
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def copy(e: List[Long] = Nil, m: List[Long] = Nil): SimpleTimer
- Definition Classes
- SimpleTimer → HmsTimer
- val elapsedTimes: List[Long]
elapsed times since for each stop
elapsed times since for each stop
- Attributes
- protected
- Definition Classes
- HmsTimer
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(a: Any): Boolean
- Definition Classes
- SimpleTimer → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getTime: Long
this method can be overridden for testing
this method can be overridden for testing
- Attributes
- protected
- Definition Classes
- HmsTimer
- def hashCode(): Int
- Definition Classes
- SimpleTimer → AnyRef → Any
- def hms: String
- returns
a formatted string showing the hours, minutes and seconds
- Definition Classes
- HmsTimer
- def hourMinutesSecondsMillis: (Long, Long, Long, Long)
- returns
a tuple with the elapsed hours, minutes, seconds and millis
- Definition Classes
- HmsTimer
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isStarted: Boolean
- returns
true if this timer has been started
- Definition Classes
- HmsTimer
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def neverStarted: Boolean
- returns
true if this timer has never been started
- Definition Classes
- HmsTimer
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def restart: SimpleTimer
restarts the Timer with no elapsed time
restarts the Timer with no elapsed time
- Definition Classes
- HmsTimer
- def start: SimpleTimer
starts the with new elapsed time
starts the with new elapsed time
- Definition Classes
- HmsTimer
- val startedTimestamps: List[Long]
each time the timer is started we add the current time to this list of times number of millis when instantiating the object using this Trait
each time the timer is started we add the current time to this list of times number of millis when instantiating the object using this Trait
- Definition Classes
- HmsTimer
- def stop: SimpleTimer
Stop the timer, store the number of elapsed millis and return a String representing the time as hour/minute/second/ms
Stop the timer, store the number of elapsed millis and return a String representing the time as hour/minute/second/ms
- returns
the elapsed time as a Long representing milliseconds
- Definition Classes
- HmsTimer
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def time: String
- returns
a formatted string showing the hours, minutes, seconds and millis
- Definition Classes
- HmsTimer
- def toString(): String
- Definition Classes
- SimpleTimer → AnyRef → Any
- def totalMillis: Long
- Definition Classes
- HmsTimer
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated