diff options
Diffstat (limited to 'globals.c')
-rw-r--r-- | globals.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,4 +1,5 @@ #include "globals.h" +#include <time.h> GlobalStruct globals = { .error_queue = {0}, @@ -10,3 +11,9 @@ GlobalStruct globals = { .ques_enable_register = 0, .flash_writes_suspended = 0 }; + + +long sec_timer (void) +{ + return (long)time(NULL); +} |