trait HmsTimer[T <: HmsTimer[T]] extends AnyRef
This trait provides Timer functionalities based on the Java Calendar milliseconds
- Alphabetic
- By Inheritance
- HmsTimer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def copy(elapsed: List[Long], started: List[Long]): T
Concrete 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[T]): T
add 2 timers together
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
val
elapsedTimes: List[Long]
elapsed times since for each stop
elapsed times since for each stop
- Attributes
- protected
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- 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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hms: String
- returns
a formatted string showing the hours, minutes and seconds
-
def
hourMinutesSecondsMillis: (Long, Long, Long, Long)
- returns
a tuple with the elapsed hours, minutes, seconds and millis
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isStarted: Boolean
- returns
true if this timer has been started
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
neverStarted: Boolean
- returns
true if this timer has never been started
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
restart: T
restarts the Timer with no elapsed time
-
def
start: T
starts the with new elapsed time
-
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
-
def
stop: T
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
time: String
- returns
a formatted string showing the hours, minutes, seconds and millis
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def totalMillis: Long
-
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( ... )