public static final class Timekeeper.ActiveStopwatch extends Timekeeper.StopwatchTimer
An active stopwatch (records both total elapsed time and active time).
| Constructor and Description |
|---|
ActiveStopwatch(long startTime,
long resumeTime,
long totalActive,
long sampling) |
| Modifier and Type | Method and Description |
|---|---|
long |
activeTime(long suspendTime) |
long |
sampling() |
long |
startTime() |
Timekeeper.StopwatchTimer |
suspend(long suspendTime) |
resumepublic ActiveStopwatch(long startTime,
long resumeTime,
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 suspend(long suspendTime)
suspend in class Timekeeper.StopwatchTimerCinnamon API. Copyright (c) 2015–2021 Lightbend.