Class StopWatch

    • Constructor Summary

      Constructors 
      Constructor Description
      StopWatch​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long elapsedTime()
      Time elapsed between start and stop, in nanoseconds.
      java.lang.String getName()
      All time instruments are named entities.
      org.slf4j.profiler.TimeInstrumentStatus getStatus()  
      void log()
      If the time instrument has an associated logger, then log information about this time instrument.
      void print()
      Print information about this time instrument on the console.
      void start​(java.lang.String name)
      Start this time instrument.
      TimeInstrument stop()
      Stop this time instrument.
      StopWatch stop​(long stopTime)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait