Trait

org.specs2.time

HmsTimer

Related Doc: package time

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def add(t: HmsTimer[T]): T

    Permalink

    add 2 timers together

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

    Permalink

    elapsed times since for each stop

    elapsed times since for each stop

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. def getTime: Long

    Permalink

    this method can be overridden for testing

    this method can be overridden for testing

    Attributes
    protected
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. def hms: String

    Permalink

    returns

    a formatted string showing the hours, minutes and seconds

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

    Permalink

    returns

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

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isStarted: Boolean

    Permalink

    returns

    true if this timer has been started

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

    Permalink
    Definition Classes
    AnyRef
  18. def neverStarted: Boolean

    Permalink

    returns

    true if this timer has never been started

  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. def restart: T

    Permalink

    restarts the Timer with no elapsed time

  22. def start: T

    Permalink

    starts the with new elapsed time

  23. val startedTimestamps: List[Long]

    Permalink

    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

  24. def stop: T

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  26. def time: String

    Permalink

    returns

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

  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def totalMillis: Long

    Permalink
  29. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped