summaryrefslogtreecommitdiff
path: root/globals.c
diff options
context:
space:
mode:
Diffstat (limited to 'globals.c')
-rw-r--r--globals.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/globals.c b/globals.c
index c1ee76b..86ea2e8 100644
--- a/globals.c
+++ b/globals.c
@@ -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);
+}