public final class StopWatch
extends java.lang.Object
Constructor and Description |
---|
StopWatch()
Initialise the stop watch
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
format(long nanoTime) |
static java.lang.String |
formatHours(long seconds) |
long |
split() |
void |
splitDebug(java.lang.String message)
Split the time and debug log a message, if trace logging is enabled
|
void |
splitDebug(java.lang.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(java.lang.String message)
Split the time and info log a message, if trace logging is enabled
|
void |
splitInfo(java.lang.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(java.lang.String message)
Split the time and trace log a message, if trace logging is enabled.
|
void |
splitTrace(java.lang.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(java.lang.String message)
Split the time and warn log a message, if trace logging is enabled
|
void |
splitWarn(java.lang.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
|
public void splitTrace(java.lang.String message)
public void splitTrace(java.lang.String message, long thresholdNano)
public void splitDebug(java.lang.String message)
public void splitDebug(java.lang.String message, long thresholdNano)
public void splitInfo(java.lang.String message)
public void splitInfo(java.lang.String message, long thresholdNano)
public void splitWarn(java.lang.String message)
public void splitWarn(java.lang.String message, long thresholdNano)
public long split()
public static java.lang.String format(long nanoTime)
public static java.lang.String formatHours(long seconds)
Copyright © 2018. All Rights Reserved.