HmsTimer
This trait provides Timer functionalities based on the Java Calendar milliseconds
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SimpleTimer
Members list
Value members
Abstract methods
Concrete methods
this method can be overridden for testing
this method can be overridden for testing
Attributes
Attributes
- Returns
-
a formatted string showing the hours, minutes and seconds
Attributes
- Returns
-
a tuple with the elapsed hours, minutes, seconds and millis
Attributes
- Returns
-
true if this timer has been started
Attributes
- Returns
-
true if this timer has never been started
restarts the Timer with no elapsed time
restarts the Timer with no elapsed time
Attributes
starts the with new elapsed time
starts the with new elapsed time
Attributes
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
Attributes
- Returns
-
the elapsed time as a Long representing milliseconds
Attributes
- Returns
-
a formatted string showing the hours, minutes, seconds and millis
Concrete fields
elapsed times since for each stop
elapsed times since for each stop
Attributes
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