@Value.Immutable
public interface TimerResult
Timer
that carries its result.Modifier and Type | Method and Description |
---|---|
long |
count() |
static TimerResult |
fromTimer(Timer timer) |
static TimerResult |
of(java.util.concurrent.TimeUnit timeUnit,
java.time.Duration duration,
long count) |
java.util.concurrent.TimeUnit |
timeUnit() |
java.time.Duration |
totalDuration() |
java.util.concurrent.TimeUnit timeUnit()
java.time.Duration totalDuration()
long count()
static TimerResult fromTimer(Timer timer)
static TimerResult of(java.util.concurrent.TimeUnit timeUnit, java.time.Duration duration, long count)