summaryrefslogtreecommitdiff
path: root/code/ecp/posix/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/ecp/posix/time.c')
-rw-r--r--code/ecp/posix/time.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/code/ecp/posix/time.c b/code/ecp/posix/time.c
index 45d827e..111e598 100644
--- a/code/ecp/posix/time.c
+++ b/code/ecp/posix/time.c
@@ -4,10 +4,14 @@
#include <core.h>
#include <tm.h>
+int ecp_tm_init(ECPContext *ctx) {
+ return ECP_OK;
+}
+
ecp_cts_t ecp_tm_abstime_ms(ecp_cts_t msec) {
struct timeval tv;
ecp_cts_t ms_now;
-
+
gettimeofday(&tv, NULL);
ms_now = tv.tv_sec * 1000 + tv.tv_usec / 1000;
return ms_now + msec;