Package | Description |
---|---|
de.larssh.utils.time |
Utilities for date and time
|
Modifier and Type | Method and Description |
---|---|
Stopwatch.Checkpoint |
Stopwatch.checkpoint(String name)
Adds a new checkpoint referenced by
name . |
Stopwatch.Checkpoint |
CloseableStopwatch.checkpoint(String name)
Adds a new checkpoint referenced by
name . |
Stopwatch.Checkpoint |
LoggingStopwatch.checkpoint(String name)
Adds a new checkpoint referenced by
name . |
Modifier and Type | Method and Description |
---|---|
List<Stopwatch.Checkpoint> |
Stopwatch.getCheckpoints()
List of checkpoints
|
Optional<Stopwatch.Checkpoint> |
Stopwatch.getLastCheckpoint()
The last created
Stopwatch.Checkpoint or empty if no checkpoint was created |
Optional<Stopwatch.Checkpoint> |
Stopwatch.Checkpoint.getPreviousCheckpoint()
Previous checkpoint or empty if this is the stopwatches first checkpoint
|
Stream<Stopwatch.Checkpoint> |
Stopwatch.stream()
Sequential
Stream with the checkpoints as its source |
Modifier and Type | Method and Description |
---|---|
int |
Stopwatch.Checkpoint.compareTo(Stopwatch.Checkpoint object) |
Constructor and Description |
---|
Checkpoint(Stopwatch stopwatch,
String name,
Instant instant,
Optional<Stopwatch.Checkpoint> previousCheckpoint)
Creates a new
Checkpoint instance. |
Copyright © 2025. All rights reserved.