From 0d0e9facfcea3cf96da3b63285865182fdd5477e Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 11 Jan 2018 21:28:22 +0100 Subject: refatoring dirs --- code/core/posix/time.c | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 code/core/posix/time.c (limited to 'code/core/posix/time.c') diff --git a/code/core/posix/time.c b/code/core/posix/time.c deleted file mode 100644 index c7a238a..0000000 --- a/code/core/posix/time.c +++ /dev/null @@ -1,24 +0,0 @@ -#include -#include - -#include - -static ecp_cts_t t_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; -} - -static void t_sleep_ms(ecp_cts_t msec) { - usleep(msec*1000); -} - -int ecp_time_init(ECPTimeIface *t) { - t->init = 1; - t->abstime_ms = t_abstime_ms; - t->sleep_ms = t_sleep_ms; - return 0; -} -- cgit v1.2.3