Class/Object

org.specs2.time

SimpleTimer

Related Docs: object SimpleTimer | package time

Permalink

class SimpleTimer extends HmsTimer[SimpleTimer]

Linear Supertypes
HmsTimer[SimpleTimer], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SimpleTimer
  2. HmsTimer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleTimer()

    Permalink

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[SimpleTimer]): SimpleTimer

    Permalink

    add 2 timers together

    add 2 timers together

    Definition Classes
    HmsTimer
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def copy(e: List[Long] = Nil, m: List[Long] = Nil): SimpleTimer

    Permalink
    Definition Classes
    SimpleTimerHmsTimer
  8. val elapsedTimes: List[Long]

    Permalink

    elapsed times since for each stop

    elapsed times since for each stop

    Attributes
    protected
    Definition Classes
    HmsTimer
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(a: Any): Boolean

    Permalink
    Definition Classes
    SimpleTimer → AnyRef → Any
  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getTime: Long

    Permalink

    this method can be overriden for testing

    this method can be overriden for testing

    Attributes
    protected
    Definition Classes
    HmsTimer
  14. def hashCode(): Int

    Permalink
    Definition Classes
    SimpleTimer → AnyRef → Any
  15. def hms: String

    Permalink

    returns

    a formatted string showing the hours, minutes and seconds

    Definition Classes
    HmsTimer
  16. def hourMinutesSecondsMillis: (Long, Long, Long, Long)

    Permalink

    returns

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

    Definition Classes
    HmsTimer
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def isStarted: Boolean

    Permalink

    returns

    true if this timer has been started

    Definition Classes
    HmsTimer
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def neverStarted: Boolean

    Permalink

    returns

    true if this timer has never been started

    Definition Classes
    HmsTimer
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def restart: SimpleTimer

    Permalink

    restarts the Timer with no elapsed time

    restarts the Timer with no elapsed time

    Definition Classes
    HmsTimer
  24. def start: SimpleTimer

    Permalink

    starts the with new elapsed time

    starts the with new elapsed time

    Definition Classes
    HmsTimer
  25. 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

    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

    Definition Classes
    HmsTimer
  26. def stop: SimpleTimer

    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 String

    Definition Classes
    HmsTimer
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def time: String

    Permalink

    returns

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

    Definition Classes
    HmsTimer
  29. def toString(): String

    Permalink
    Definition Classes
    SimpleTimer → AnyRef → Any
  30. def totalMillis: Long

    Permalink
    Definition Classes
    HmsTimer
  31. final def wait(): Unit

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

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

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

Inherited from HmsTimer[SimpleTimer]

Inherited from AnyRef

Inherited from Any

Ungrouped