edu.knowitall.common

Timing

object Timing extends AnyRef

Functions to aid with timing.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Timing
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class Interval extends AnyRef

    Intervals are used to format time in different units.

  2. class Stats extends AnyRef

    A class to store timing statistics.

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. object Days extends Interval with Product with Serializable

  7. object Hours extends Interval with Product with Serializable

  8. object Microseconds extends Interval with Product with Serializable

  9. object Milliseconds extends Interval with Product with Serializable

  10. object Minutes extends Interval with Product with Serializable

  11. object Nanoseconds extends Interval with Product with Serializable

  12. object Seconds extends Interval with Product with Serializable

  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

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

    Definition Classes
    AnyRef
  24. def printTime[R](block: ⇒ R): Unit

    Execute the command and print the time taken.

  25. def since(ns: Long): Long

    Compute the time since ns.

  26. def speedTest(executions: List[() ⇒ Any]): Stats

    Execute the blocks and report statistics about the time taken.

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

    Definition Classes
    AnyRef
  28. def time[R](block: ⇒ R, handler: (Long) ⇒ Any): R

    Execute the block and pass the time taken to the handler.

  29. def time[R](block: ⇒ Unit): Long

    Return the time a unit block takes to finish.

  30. def time[R](block: ⇒ R): (Long, R)

    Return a tuple, where the first part is the nanoseconds taken and the second part is the result of the block execution.

  31. def timeThen[R](block: ⇒ R)(handler: (Long) ⇒ Any): R

    Execute the block and pass the time taken to the handler.

  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any