Class

at.logic.gapt.utils.logging

Stopwatch

Related Doc: package logging

Permalink

class Stopwatch extends Logger

This class defined an object for measuring time and handling errors. Control it with provided functions start, stop, lap, save and read it out by using toXXX methods.

Linear Supertypes
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Stopwatch
  2. Logger
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Stopwatch()

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Stopwatch to any2stringadd[Stopwatch] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Stopwatch, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Stopwatch to ArrowAssoc[Stopwatch] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def debug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  9. def ensuring(cond: (Stopwatch) ⇒ Boolean, msg: ⇒ Any): Stopwatch

    Permalink
    Implicit information
    This member is added by an implicit conversion from Stopwatch to Ensuring[Stopwatch] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (Stopwatch) ⇒ Boolean): Stopwatch

    Permalink
    Implicit information
    This member is added by an implicit conversion from Stopwatch to Ensuring[Stopwatch] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): Stopwatch

    Permalink
    Implicit information
    This member is added by an implicit conversion from Stopwatch to Ensuring[Stopwatch] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): Stopwatch

    Permalink
    Implicit information
    This member is added by an implicit conversion from Stopwatch to Ensuring[Stopwatch] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def error(msg: ⇒ String, e: Throwable): Nothing

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  16. def error(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  17. var errorStatus: String

    Permalink
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Stopwatch to StringFormat[Stopwatch] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def getHours(millisec: Long): Int

    Permalink
  22. def getMSec(millisec: Long): Int

    Permalink
  23. def getMin(millisec: Long): Int

    Permalink
  24. def getSec(millisec: Long): Int

    Permalink
  25. def getStatus(): String

    Permalink

    Returns the status of the stopwatch

    Returns the status of the stopwatch

    returns

    current status

  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. def info(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def lap(msg: String): Long

    Permalink

    Saves the past time since start() or lap() has been called with additional information provided in msg

    Saves the past time since start() or lap() has been called with additional information provided in msg

    returns

    time in milliseconds since last start/lap

  30. val log: org.slf4j.Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  31. def loggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  32. val nLine: String

    Permalink
  33. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  34. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  36. def save(msg: String): Long

    Permalink

    Saves the past time since start() or lap() without resetting the time with additional information provided in msg

    Saves the past time since start() or lap() without resetting the time with additional information provided in msg

    returns

    time in milliseconds since last start/lap

  37. def start(): Unit

    Permalink

    Starts the stopwatch

  38. var startTime: Long

    Permalink
  39. var status: StopwatchStatus.Value

    Permalink
  40. def stop(msg: String): Long

    Permalink

    Saves the past time since start() has been called with additional information provided in msg Note: In contrast to lap(msg:String), the stopwatch will not be rested to the current time, i.e.

    Saves the past time since start() has been called with additional information provided in msg Note: In contrast to lap(msg:String), the stopwatch will not be rested to the current time, i.e. further calls of save/lap will be w.r.t. the last start() call

    returns

    time in milliseconds since last start()

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

    Permalink
    Definition Classes
    AnyRef
  42. var times: MutableList[(String, Long)]

    Permalink
  43. def toCSV(): String

    Permalink

    Returns the all previously stops/laps in csv format

    Returns the all previously stops/laps in csv format

    returns

    all times in .csv

  44. def toFormattedString(): String

    Permalink

    Returns the all previously stops/laps as <hours>h <minutes>min <seconds>sec <milliseconds>msec

    Returns the all previously stops/laps as <hours>h <minutes>min <seconds>sec <milliseconds>msec

    returns

    all times as string

  45. def toString(): String

    Permalink

    Returns the all previously stops/laps in milliseconds

    Returns the all previously stops/laps in milliseconds

    returns

    all times as string

    Definition Classes
    Stopwatch → AnyRef → Any
  46. def toXML(): String

    Permalink

    Returns the all previously stops/laps in xml format

    Returns the all previously stops/laps in xml format

    returns

    all times in .xml

  47. def trace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  48. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def warn(msg: ⇒ String, e: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  52. def warn(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  53. def [B](y: B): (Stopwatch, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Stopwatch to ArrowAssoc[Stopwatch] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Logger

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Stopwatch to any2stringadd[Stopwatch]

Inherited by implicit conversion StringFormat from Stopwatch to StringFormat[Stopwatch]

Inherited by implicit conversion Ensuring from Stopwatch to Ensuring[Stopwatch]

Inherited by implicit conversion ArrowAssoc from Stopwatch to ArrowAssoc[Stopwatch]

Ungrouped