public static final class Timekeeper.SuspendedStopwatch extends Timekeeper.StopwatchTimer
A suspended stopwatch (records both total elapsed time and active time).
| Constructor and Description |
|---|
SuspendedStopwatch(long startTime,
long totalActive,
long sampling) |
| Modifier and Type | Method and Description |
|---|---|
long |
activeTime(long suspendTime) |
Timekeeper.StopwatchTimer |
resume(long resumeTime) |
long |
sampling() |
long |
startTime() |
suspendpublic SuspendedStopwatch(long startTime,
long totalActive,
long sampling)
public long startTime()
startTime in class Timekeeper.StopwatchTimerpublic long sampling()
sampling in class Timekeeper.StopwatchTimerpublic long activeTime(long suspendTime)
activeTime in class Timekeeper.StopwatchTimerpublic Timekeeper.StopwatchTimer resume(long resumeTime)
resume in class Timekeeper.StopwatchTimerCinnamon API. Copyright (c) 2015–2021 Lightbend.