public final class StopWatch extends Object
Constructor and Description |
---|
StopWatch()
Initialise the stop watch
|
Modifier and Type | Method and Description |
---|---|
static 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 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
|
public void splitTrace(String message)
public void splitTrace(String message, long thresholdNano)
public void splitDebug(String message)
public void splitDebug(String message, long thresholdNano)
public void splitInfo(String message)
public void splitInfo(String message, long thresholdNano)
public void splitWarn(String message)
public void splitWarn(String message, long thresholdNano)
public long split()
public static String format(long nanoTime)
public static String formatHours(long seconds)
Copyright © 2019. All rights reserved.