org.specs2.time

HmsTimer

trait HmsTimer[T <: HmsTimer[T]] extends AnyRef

This trait provides Timer functionalities based on the Java Calendar milliseconds

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HmsTimer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def copy(elapsed: List[Long], started: List[Long]): T

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def add(t: HmsTimer[T]): T

    add 2 timers together

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val elapsedTimes: List[Long]

    elapsed times since for each stop

    elapsed times since for each stop

    Attributes
    protected
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def getTime: Long

    this method can be overriden for testing

    this method can be overriden for testing

    Attributes
    protected
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def hms: String

    returns

    a formatted string showing the hours, minutes and seconds

  17. def hourMinutesSecondsMillis: (Long, Long, Long, Long)

    returns

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

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def isStarted: Boolean

    returns

    true if this timer has been started

  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def neverStarted: Boolean

    returns

    true if this timer has never been started

  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def restart: T

    restarts the Timer with no elapsed time

  25. def start: T

    starts the with new elapsed time

  26. 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

  27. 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 String

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def time: String

    returns

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

  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. def totalMillis: Long

  32. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped