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