TimeTemplate.LapTimerTicks

Used to track "laps" of time, where each call to lap will return the time since the last call to lap.

Members

Functions

getStartLapTime
TimestampTicks getStartLapTime()

Get the current lap start time.

lap
DurationTicks lap()

Return the duration of time since the last call to lap (or start).

moveLapStartTime
void moveLapStartTime(DurationTicks duration)

Change the lap start time.

peek
DurationTicks peek()

Check the current lap time without starting a new lap.

setStartLapTime
void setStartLapTime(TimestampTicks startLapTime)

Set a custom value for the lap start time.

start
void start()

Start the next lap. This will get the current time and set it so that the next call to lap will take the difference between the new time with the time this was called.

Meta