Skip to content

Lap

Source code: stopwatch/lap.py

Attributes

All attributes of the Lap class.

running

If the lap is running.

Type

elapsed

The elapsed time in seconds.

Type

Methods

All methods of the Lap class.

start

python
def start(self) -> None:
def start(self) -> None:

Starts the lap if not running.

DANGER

It is not recommended to use this method. Instead, use the stopwatch start method.

stop

python
def stop(self) -> None:
def stop(self) -> None:

Stops the lap, freezing the duration.

DANGER

It is not recommended to use this method. Instead, use the Stopwatch stop method.

Released under the MIT License.