Package com.lightbend.cinnamon.stopwatch
Class Timekeeper.ActiveStopwatch
- java.lang.Object
-
- com.lightbend.cinnamon.stopwatch.Timekeeper.StopwatchTimer
-
- com.lightbend.cinnamon.stopwatch.Timekeeper.ActiveStopwatch
-
- Enclosing class:
- Timekeeper
public static final class Timekeeper.ActiveStopwatch extends Timekeeper.StopwatchTimer
INTERNAL APIAn active stopwatch (records both total elapsed time and active time).
-
-
Constructor Summary
Constructors Constructor Description ActiveStopwatch(long startTime, long resumeTime, long totalActive, long sampling)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longactiveTime(long suspendTime)longsampling()longstartTime()Timekeeper.StopwatchTimersuspend(long suspendTime)-
Methods inherited from class com.lightbend.cinnamon.stopwatch.Timekeeper.StopwatchTimer
resume
-
-
-
-
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
-
suspend
public Timekeeper.StopwatchTimer suspend(long suspendTime)
- Overrides:
suspendin classTimekeeper.StopwatchTimer
-
-