hbp_nrp_watchdog.Timer module

This module contains an implementation to run a certain function repeatedly until a timeout is reached

class Timer(interval, callback)[source]

Bases: threading.Thread

Timer that runs two functions, one every n1 seconds and the other every n2 seconds, using only one thread

cancel_all()[source]

Cancel the timer.

run()[source]

Exec the function and restart the timer.