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 longactiveTime(long suspendTime)Timekeeper.StopwatchTimerresume(long resumeTime)longsampling()longstartTime()-
Methods inherited from class com.lightbend.cinnamon.stopwatch.Timekeeper.StopwatchTimer
suspend
-
-
-
-
Method Detail
-
startTime
public long startTime()
- Specified by:
startTimein classTimekeeper.StopwatchTimer
-
sampling
public long sampling()
- Specified by:
samplingin classTimekeeper.StopwatchTimer
-
activeTime
public long activeTime(long suspendTime)
- Overrides:
activeTimein classTimekeeper.StopwatchTimer
-
resume
public Timekeeper.StopwatchTimer resume(long resumeTime)
- Overrides:
resumein classTimekeeper.StopwatchTimer
-
-