Top Description Fields Constructors Methods
org.jooq.tools

public final Class StopWatch

extends Object
Class Inheritance

A time measuring device
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private static final JooqLogger
private long
private long

Constructor Summary

AccessConstructor and Description
public
StopWatch()

Initialise the stop watch

Method Summary

Modifier and TypeMethod and Description
public static String
format(long nanoTime)

public static String
formatHours(long seconds)

public long
public void
splitDebug(String message)

Split the time and debug log a message, if trace logging is enabled

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

public void
splitInfo(String message)

Split the time and info log a message, if trace logging is enabled

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

private String
splitMessage(long thresholdNano)

public void
splitTrace(String message)

Split the time and trace log a message, if trace logging is enabled.

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.

public void
splitWarn(String message)

Split the time and warn log a message, if trace logging is enabled

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final JooqLogger log
splitback to summary
private long split
startback to summary
private long start

Constructor Detail

StopWatchback to summary
public StopWatch()

Initialise the stop watch

Method Detail

formatback to summary
public static String format(long nanoTime)
formatHoursback to summary
public static String formatHours(long seconds)
splitback to summary
public long split()
splitDebugback to summary
public void splitDebug(String message)

Split the time and debug log a message, if trace logging is enabled

splitDebugback to summary
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

splitInfoback to summary
public void splitInfo(String message)

Split the time and info log a message, if trace logging is enabled

splitInfoback to summary
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

splitMessageback to summary
private String splitMessage(long thresholdNano)
splitTraceback to summary
public void splitTrace(String message)

Split the time and trace log a message, if trace logging is enabled.

splitTraceback to summary
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.

splitWarnback to summary
public void splitWarn(String message)

Split the time and warn log a message, if trace logging is enabled

splitWarnback to summary
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