SimpleTimer

Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def copy(e: List[Long], m: List[Long]): SimpleTimer
override def equals(a: Any): Boolean
Definition Classes
Any
override def hashCode: Int
Definition Classes
Any
override def toString: String
Definition Classes
Any

Inherited methods

add 2 timers together

add 2 timers together

Inherited from:
HmsTimer
protected def getTime: Long

this method can be overridden for testing

this method can be overridden for testing

Inherited from:
HmsTimer
def hms: String
Returns:

a formatted string showing the hours, minutes and seconds

Inherited from:
HmsTimer
def hourMinutesSecondsMillis: (Long, Long, Long, Long)
Returns:

a tuple with the elapsed hours, minutes, seconds and millis

Inherited from:
HmsTimer
def isStarted: Boolean
Returns:

true if this timer has been started

Inherited from:
HmsTimer
def neverStarted: Boolean
Returns:

true if this timer has never been started

Inherited from:
HmsTimer

restarts the Timer with no elapsed time

restarts the Timer with no elapsed time

Inherited from:
HmsTimer

starts the with new elapsed time

starts the with new elapsed time

Inherited from:
HmsTimer

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

Inherited from:
HmsTimer
def time: String
Returns:

a formatted string showing the hours, minutes, seconds and millis

Inherited from:
HmsTimer
def totalMillis: Long
Inherited from:
HmsTimer

Inherited fields

protected val elapsedTimes: List[Long]

elapsed times since for each stop

elapsed times since for each stop

Inherited from:
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

Inherited from:
HmsTimer