summaryrefslogtreecommitdiff
path: root/globals.c
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 20:02:24 -0500
committerroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 20:02:24 -0500
commit22d19c0d2a9d56ad560b44cfcb65b69bf4ca278c (patch)
treef9441bbf2843b341c1f2c875f1801b0af0b65241 /globals.c
parent4d3d806f59d13d8965fd0488cf63fc4aca7553d9 (diff)
startup timer
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);
+}