| Modifier and Type | Method and Description |
|---|---|
void |
elapsed(String message)
Record the elapsed time since the stopwatch was started/restarted.
|
void |
elapsed(String message,
Object... arguments)
Record the elapsed time since the stopwatch was started/restarted.
|
void |
split(String message)
Record time elapsed since the last interval measurement or since started/restarted.
|
void |
split(String message,
Object... arguments)
Record time elapsed since the last interval measurement or since started/restarted.
|
void |
start()
Starts the stopwatch.
|
public static final Stopwatch INSTANCE
public void start()
Stopwatchpublic void split(String message)
Stopwatchpublic void split(String message, Object... arguments)
Stopwatchsplit in interface Stopwatchmessage - message to record (typically a description of the functionality measured, like a component name.)arguments - arguments to be substituted into the message. Parameterization operates as in slf4j:
http://www.slf4j.org/faq.html#logging_performancepublic void elapsed(String message)
Stopwatchpublic void elapsed(String message, Object... arguments)
Stopwatchelapsed in interface Stopwatchmessage - message to record (typically a description of the functionality measured, like a component name.)arguments - arguments to be substituted into the message. Parameterization operates as in slf4j:
http://www.slf4j.org/faq.html#logging_performanceCopyright © 2016–2017. All rights reserved.