ksuit.utils.common.stopwatch

Classes

Stopwatch

A stopwatch class to measure elapsed time.

Module Contents

class ksuit.utils.common.stopwatch.Stopwatch

A stopwatch class to measure elapsed time.

start()

Start the stopwatch.

Return type:

Stopwatch

stop()

Stop the stopwatch and return the elapsed time since the last lap.

Return type:

float

lap()

Record a lap time and return the elapsed time since the last lap.

Return type:

float

property last_lap_time: float

Return the last lap time.

Return type:

float

property lap_count: int

Return the number of laps recorded.

Return type:

int

property average_lap_time: float

Return the average lap time.

Return type:

float

property elapsed_seconds: float

Return the total elapsed time since the stopwatch was started.

Return type:

float

property elapsed_milliseconds: float

Return the total elapsed time since the stopwatch was started in milliseconds.

Return type:

float