StopwatchLap
@Document(name = "builtin:StopwatchLap")
class StopwatchLap : Thing
An AppSearch document representing a StopwatchLap entity.
A Stopwatch can create a Lap, which will take a snapshot of the duration from when the previous Lap was created to when the new Lap is created. For example: if a Stopwatch starts at 12:00, creates a Lap at 12:05, and creates another Lap at 12:15, then it would have created two Laps with 5 minutes duration and 10 minutes duration respectively.
Summary
Nested types |
|---|
|
Builder for |
Public functions |
|
|---|---|
Long |
Returns the total duration in milliseconds accumulated by all the |
Long |
Returns the total duration in milliseconds accumulated by the current |
Int |
Returns the position of the current |
Inherited functions |
||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public functions
getAccumulatedLapDurationMillis
fun getAccumulatedLapDurationMillis(): Long
Returns the total duration in milliseconds accumulated by all the StopwatchLap instances up to and including this one.
getLapDurationMillis
fun getLapDurationMillis(): Long
Returns the total duration in milliseconds accumulated by the current StopwatchLap.
getLapNumber
fun getLapNumber(): Int
Returns the position of the current StopwatchLap, starting at 1.