java.lang.Object
org.jooq.tools.StopWatch
A time measuring device
- Author:
- Lukas Eder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
format
(long nanoTime) static String
formatHours
(long seconds) long
split()
void
splitDebug
(String message) Split the time and debug log a message, if trace logging is enabledvoid
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 enabledvoid
Split the time and info log a message, if trace logging is enabledvoid
Split the time and info log a message if the split time exceeds a certain threshold and if trace logging is enabledvoid
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
Split the time and warn log a message, if trace logging is enabledvoid
Split the time and warn log a message if the split time exceeds a certain threshold and if trace logging is enabled
-
Constructor Details
-
StopWatch
public StopWatch()Initialise the stop watch
-
-
Method Details
-
splitTrace
Split the time and trace log a message, if trace logging is enabled. -
splitTrace
Split the time and trace log a message if the split time exceeds a certain threshold and if trace logging is enabled. -
splitDebug
Split the time and debug log a message, if trace logging is enabled -
splitDebug
Split the time and debug log a message if the split time exceeds a certain threshold and if trace logging is enabled -
splitInfo
Split the time and info log a message, if trace logging is enabled -
splitInfo
Split the time and info log a message if the split time exceeds a certain threshold and if trace logging is enabled -
splitWarn
Split the time and warn log a message, if trace logging is enabled -
splitWarn
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
-
formatHours
-