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()
Stopwatch
public void split(String message)
Stopwatch
public void split(String message, Object... arguments)
Stopwatch
split
in interface Stopwatch
message
- 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)
Stopwatch
public void elapsed(String message, Object... arguments)
Stopwatch
elapsed
in interface Stopwatch
message
- 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 © 2010–2017. All rights reserved.