Prusa MINI Firmware overview
|
Go to the documentation of this file.
27 #include "../core/macros.h"
39 enum State :
char { STOPPED, RUNNING, PAUSED };
41 static Stopwatch::State state;
109 #ifdef DEBUG_STOPWATCH
115 static void debug(
const char func[]);
static FORCE_INLINE bool isRunning()
Check if the timer is running.
Definition: stopwatch.h:93
uint32_t millis(void)
Definition: wiring_time.c:29
void onPrintTimerPaused()
Definition: marlin_server.cpp:884
static void resume(const millis_t with_time)
Resume the stopwatch.
Definition: stopwatch.cpp:88
static bool stop()
Stop the stopwatch.
Definition: stopwatch.cpp:36
#define FORCE_INLINE
Definition: macros.h:40
#define PSTR(str)
Definition: pgmspace.h:31
void onPrintTimerStarted()
Definition: marlin_server.cpp:879
static millis_t duration()
Get the running time.
Definition: stopwatch.cpp:108
#define SERIAL_ECHOPGM(S)
Definition: serial.h:173
static bool pause()
Pause the stopwatch.
Definition: stopwatch.cpp:52
static bool start()
Start the stopwatch.
Definition: stopwatch.cpp:68
static void reset()
Reset the stopwatch.
Definition: stopwatch.cpp:97
static FORCE_INLINE bool isPaused()
Check if the timer is paused.
Definition: stopwatch.h:100
uint32_t millis_t
Definition: stopwatch.h:30
#define DEBUGGING(F)
Definition: serial.h:47
static FORCE_INLINE void init()
Initialize the stopwatch.
Definition: stopwatch.h:50
void serialprintPGM(PGM_P str)
Definition: serial.cpp:35
#define SERIAL_ECHOLNPGM(S)
Definition: serial.h:174
void onPrintTimerStopped()
Definition: marlin_server.cpp:889
uint32_t millis_t
Definition: millis_t.h:26
Stopwatch class.
Definition: stopwatch.h:37