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 long
activeTime(long suspendTime)
long
sampling()
long
startTime()
Timekeeper.StopwatchTimer
suspend(long suspendTime)
-
Methods inherited from class com.lightbend.cinnamon.stopwatch.Timekeeper.StopwatchTimer
resume
-
-
-
-
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
-
suspend
public Timekeeper.StopwatchTimer suspend(long suspendTime)
- Overrides:
suspend
in classTimekeeper.StopwatchTimer
-
-