Add timer ID attribute, for safe cleanup in the scripted environment

This commit is contained in:
Sergey Lyubka
2022-07-17 12:52:30 +01:00
parent 1fbf534f9a
commit 4a3d760c06
6 changed files with 12 additions and 6 deletions
+1
View File
@@ -3,6 +3,7 @@
#include "arch.h"
struct mg_timer {
unsigned long id; // Timer ID
uint64_t period_ms; // Timer period in milliseconds
uint64_t prev_ms; // Timestamp of a previous poll
uint64_t expire; // Expiration timestamp in milliseconds