org.powerscala.concurrent

Time

object Time extends Enumerated[Time] with Serializable

Linear Supertypes
Serializable, Serializable, Enumerated[Time], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Time
  2. Serializable
  3. Serializable
  4. Enumerated
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. def +=(enum: Time): Unit

    Attributes
    protected[org.powerscala.enum]
    Definition Classes
    Enumerated
  5. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  7. val Day: Time

  8. val Hour: Time

  9. val Minute: Time

  10. val Month: Time

  11. val Second: Time

  12. val Week: Time

  13. val Year: Time

  14. def apply(index: Int): Time

    Definition Classes
    Enumerated
  15. def apply(name: String, caseSensitive: Boolean): Time

    Definition Classes
    Enumerated
  16. def apply(name: String): Time

    Definition Classes
    Enumerated
  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. def block(name: String): Unit

    See also

    report

  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. implicit def double2TimeAmount(time: Double): TimeAmount

  21. def elapsed(time: Double): String

    Converts time in seconds to a short String representation.

  22. def elapsed(time: Long): String

    Converts time in milliseconds to a short String representation.

  23. def elapsed(f: ⇒ Any): Double

    Invokes the wrapped function and returns the time in seconds it took to complete as a Double.

  24. def elapsedExact(time: Long): String

    Converts time in milliseconds to a long String representation.

  25. def enumName(enum: EnumEntry): String

    Attributes
    protected[org.powerscala.enum]
    Definition Classes
    Enumerated
  26. def enumOrdinal(enum: EnumEntry): Int

    Attributes
    protected[org.powerscala.enum]
    Definition Classes
    Enumerated
  27. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. def fromMillis(milliseconds: Long): Double

    Converts time in milliseconds to seconds.

  31. def fromNanos(nanoseconds: Long): Double

    Converts time in nanoseconds to seconds.

  32. def futureCalendar(timeFromNow: Double): Calendar

  33. def get(name: String): Option[Time]

    Definition Classes
    Enumerated
  34. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  37. lazy val length: Int

    Definition Classes
    Enumerated
  38. def millis(time: Double): Long

    Converts time in seconds to milliseconds.

  39. lazy val name: String

    Definition Classes
    Enumerated
  40. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  43. def random: Time

    Definition Classes
    Enumerated
  44. def report(f: ⇒ Any): Report

    Generates a report for timing of segments of code defined by block names.

    Generates a report for timing of segments of code defined by block names.

    Use the block(name) method to define segments of application context during the invocation of the function.

  45. def reportFinish(): Report

  46. def reportStart(): Report

  47. def sleep(time: Double): Unit

    Convenience method to sleep a specific amount of time in seconds.

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

    Definition Classes
    AnyRef
  49. implicit val thisEnumerated: Enumerated[EnumEntry]

    Definition Classes
    Enumerated
  50. implicit def timeAmount2Double(timeAmount: TimeAmount): Double

  51. def toString(): String

    Definition Classes
    AnyRef → Any
  52. def unapply(s: String): Option[Time]

    Definition Classes
    Enumerated
  53. lazy val values: List[Time]

    Definition Classes
    Enumerated
  54. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. def waitFor(time: Double, precision: Double = 0.01, start: Long = System.currentTimeMillis, errorOnTimeout: Boolean = false)(condition: ⇒ Boolean): Boolean

    Waits for condition to return true.

    Waits for condition to return true. This method will wait time (in seconds) for the condition and will return false if the condition is not met within that time. Further, a negative value for time will cause the wait to occur until the condition is true.

    time

    The time to wait for the condition to return true.

    precision

    The recycle period between checks. Defaults to 0.01s.

    start

    The start time in milliseconds since epoc. Defaults to System.currentTimeMillis.

    errorOnTimeout

    If true, throws a java.util.concurrent.TimeoutException upon timeout. Defaults to false.

    condition

    The functional condition that must return true.

    Annotations
    @tailrec()

Inherited from Serializable

Inherited from Serializable

Inherited from Enumerated[Time]

Inherited from AnyRef

Inherited from Any

Ungrouped