Package com.lightbend.cinnamon.stopwatch
Class Timekeeper.SuspendedStopwatch
- java.lang.Object
-
- com.lightbend.cinnamon.stopwatch.Timekeeper.StopwatchTimer
-
- com.lightbend.cinnamon.stopwatch.Timekeeper.SuspendedStopwatch
-
- Enclosing class:
- Timekeeper
public static final class Timekeeper.SuspendedStopwatch extends Timekeeper.StopwatchTimer
INTERNAL APIA suspended stopwatch (records both total elapsed time and active time).
-
-
Constructor Summary
Constructors Constructor Description SuspendedStopwatch(long startTime, long totalActive, long sampling)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
activeTime(long suspendTime)
Timekeeper.StopwatchTimer
resume(long resumeTime)
long
sampling()
long
startTime()
-
Methods inherited from class com.lightbend.cinnamon.stopwatch.Timekeeper.StopwatchTimer
suspend
-
-
-
-
Method Detail
-
startTime
public long startTime()
- Specified by:
startTime
in classTimekeeper.StopwatchTimer
-
sampling
public long sampling()
- Specified by:
sampling
in classTimekeeper.StopwatchTimer
-
activeTime
public long activeTime(long suspendTime)
- Overrides:
activeTime
in classTimekeeper.StopwatchTimer
-
resume
public Timekeeper.StopwatchTimer resume(long resumeTime)
- Overrides:
resume
in classTimekeeper.StopwatchTimer
-
-