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