Package | Description |
---|---|
de.larssh.utils.time |
Utilities for date and time
|
Modifier and Type | Method and Description |
---|---|
static LoggingStopwatch |
LoggingStopwatch.early(String name,
Consumer<Supplier<String>> logger)
Creates a
LoggingStopwatch that logs on every logging event. |
static LoggingStopwatch |
LoggingStopwatch.earlyWithString(String name,
Consumer<String> logger)
Creates a
LoggingStopwatch that logs on every logging event. |
static LoggingStopwatch |
LoggingStopwatch.late(String name,
Consumer<Supplier<String>> logger)
Creates a
LoggingStopwatch that does not log on every logging
event. |
static LoggingStopwatch |
LoggingStopwatch.lateWithString(String name,
Consumer<String> logger)
Creates a
LoggingStopwatch that does not log on every logging
event. |
Modifier and Type | Method and Description |
---|---|
Consumer<? super LoggingStopwatch> |
LoggingStopwatch.getLogger()
Logging operation that consumes a
LoggingStopwatch
This operation is called after starting and stopping the stopwatch and after
each checkpoint creation. |
Constructor and Description |
---|
LoggingStopwatch(String name,
Consumer<? super LoggingStopwatch> logger)
Implementation of
CloseableStopwatch meant for logging stopwatch
data. |
Copyright © 2025. All rights reserved.