public class StopwatchLogger extends Object implements Closeable
Clock.Fast for speeding up the operation.| Constructor and Description |
|---|
StopwatchLogger(Class<?> clazz)
instantiate a class with the provided class
|
StopwatchLogger(org.slf4j.Logger customLog,
Class<?> clazz)
Instantiate a class with the provided class and custom logger.
|
StopwatchLogger(org.slf4j.Logger customLog,
String clazz)
Instantiate a class with the provided class and custom logger.
|
StopwatchLogger(String clazz)
Create a class with the provided class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isEnabled() |
boolean |
isStarted() |
void |
split(String message)
track of an intermediate time without stopping the ticking.
|
void |
start()
starts the clock
|
void |
stop(String message)
track the time and stop the clock.
|
public StopwatchLogger(String clazz)
claz - public StopwatchLogger(Class<?> clazz)
clazz - public StopwatchLogger(org.slf4j.Logger customLog,
Class<?> clazz)
customLog - clazz - public StopwatchLogger(org.slf4j.Logger customLog,
String clazz)
customLog - clazz - public void start()
public void split(String message)
message - public void stop(String message)
message - public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean isStarted()
public boolean isEnabled()
"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"