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() |
suspend
public SuspendedStopwatch(long startTime, long totalActive, long sampling)
public long startTime()
startTime
in class Timekeeper.StopwatchTimer
public long sampling()
sampling
in class Timekeeper.StopwatchTimer
public long activeTime(long suspendTime)
activeTime
in class Timekeeper.StopwatchTimer
public Timekeeper.StopwatchTimer resume(long resumeTime)
resume
in class Timekeeper.StopwatchTimer
Cinnamon API. Copyright (c) 2015–2021 Lightbend.