timer — Timer

timer The main functionality and functions of the module

Function

timer.get_timer()

Gets the system timer time in seconds.

timer.reset_timer()

Reset system timer time.

Sample Code:

import haloboard
import time

haloboard.reset_timer()

while True:
    if haloboard.button.is_pressed():
        haloboard.reset_timer()
        print("reset_timer")
    print("time:", end = "")
    print(haloboard.get_timer())