class SimpleTimer extends HmsTimer[SimpleTimer]
- Alphabetic
- By Inheritance
- SimpleTimer
- HmsTimer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )