From 5cd610a07468137066ea4daa5176c3e7045113b0 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 5 Aug 2020 03:38:22 +0200 Subject: ecp moved to root; fixed utils and tests --- code/ecp/posix/time.c | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 code/ecp/posix/time.c (limited to 'code/ecp/posix/time.c') diff --git a/code/ecp/posix/time.c b/code/ecp/posix/time.c deleted file mode 100644 index 111e598..0000000 --- a/code/ecp/posix/time.c +++ /dev/null @@ -1,24 +0,0 @@ -#include -#include - -#include -#include - -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; -} - -void ecp_tm_sleep_ms(ecp_cts_t msec) { - usleep(msec*1000); -} - -void ecp_tm_timer_set(ecp_cts_t next) {} \ No newline at end of file -- cgit v1.2.3