Module org.jooq

Class StopWatch

java.lang.Object
org.jooq.tools.StopWatch

public final class StopWatch extends Object
A time measuring device
Author:
Lukas Eder
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initialise the stop watch
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    format(long nanoTime)
     
    static String
    formatHours(long seconds)
     
    long
     
    void
    splitDebug(String message)
    Split the time and debug log a message, if trace logging is enabled
    void
    splitDebug(String message, long thresholdNano)
    Split the time and debug log a message if the split time exceeds a certain threshold and if trace logging is enabled
    void
    splitInfo(String message)
    Split the time and info log a message, if trace logging is enabled
    void
    splitInfo(String message, long thresholdNano)
    Split the time and info log a message if the split time exceeds a certain threshold and if trace logging is enabled
    void
    splitTrace(String message)
    Split the time and trace log a message, if trace logging is enabled.
    void
    splitTrace(String message, long thresholdNano)
    Split the time and trace log a message if the split time exceeds a certain threshold and if trace logging is enabled.
    void
    splitWarn(String message)
    Split the time and warn log a message, if trace logging is enabled
    void
    splitWarn(String message, long thresholdNano)
    Split the time and warn log a message if the split time exceeds a certain threshold and if trace logging is enabled

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StopWatch

      public StopWatch()
      Initialise the stop watch
  • Method Details

    • splitTrace

      public void splitTrace(String message)
      Split the time and trace log a message, if trace logging is enabled.
    • splitTrace

      public void splitTrace(String message, long thresholdNano)
      Split the time and trace log a message if the split time exceeds a certain threshold and if trace logging is enabled.
    • splitDebug

      public void splitDebug(String message)
      Split the time and debug log a message, if trace logging is enabled
    • splitDebug

      public void splitDebug(String message, long thresholdNano)
      Split the time and debug log a message if the split time exceeds a certain threshold and if trace logging is enabled
    • splitInfo

      public void splitInfo(String message)
      Split the time and info log a message, if trace logging is enabled
    • splitInfo

      public void splitInfo(String message, long thresholdNano)
      Split the time and info log a message if the split time exceeds a certain threshold and if trace logging is enabled
    • splitWarn

      public void splitWarn(String message)
      Split the time and warn log a message, if trace logging is enabled
    • splitWarn

      public void splitWarn(String message, long thresholdNano)
      Split the time and warn log a message if the split time exceeds a certain threshold and if trace logging is enabled
    • split

      public long split()
    • format

      public static String format(long nanoTime)
    • formatHours

      public static String formatHours(long seconds)