A very simple timer written in Python. Useful for simple applications.
- We create an instance of the Timer class with parameters such as time unit (s or ms) and precision.
- The start() method starts the timer.
- The check() method returns the current elapsed time since the start.
- The stop() method stops the timer and returns the total time.
- The restart() method resets the timer on run.
- The zero() method resets all object attributes to zero.