|
Prusa MINI Firmware overview
|
#include <stopwatch.h>

Static Public Member Functions | |
| static FORCE_INLINE void | init () |
| Initialize the stopwatch. More... | |
| static bool | stop () |
| Stop the stopwatch. More... | |
| static bool | pause () |
| Pause the stopwatch. More... | |
| static bool | start () |
| Start the stopwatch. More... | |
| static void | resume (const millis_t with_time) |
| Resume the stopwatch. More... | |
| static void | reset () |
| Reset the stopwatch. More... | |
| static FORCE_INLINE bool | isRunning () |
| Check if the timer is running. More... | |
| static FORCE_INLINE bool | isPaused () |
| Check if the timer is paused. More... | |
| static millis_t | duration () |
| Get the running time. More... | |
Stopwatch class.
This class acts as a timer proving stopwatch functionality including the ability to pause the running time counter.
|
static |
Initialize the stopwatch.


|
static |
Stop the stopwatch.
Stop the running timer, it will silently ignore the request if no timer is currently running.


|
static |
Pause the stopwatch.
Pause the running timer, it will silently ignore the request if no timer is currently running.


|
static |
Start the stopwatch.
Start the timer, it will silently ignore the request if the timer is already running.


|
static |
Reset the stopwatch.
Reset all settings to their default values.

|
static |
|
static |
|
static |
Get the running time.
Return the total number of seconds the timer has been running.

