From 3ef6719f47b734b12c0b11c725b7f12e3fb3c08a Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Tue, 23 May 2017 14:19:26 +0200 Subject: fs layout updated --- code/posix/time.c | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 code/posix/time.c (limited to 'code/posix/time.c') diff --git a/code/posix/time.c b/code/posix/time.c deleted file mode 100644 index 3dd3920..0000000 --- a/code/posix/time.c +++ /dev/null @@ -1,24 +0,0 @@ -#include -#include - -#include - -static unsigned int t_abstime_ms(unsigned int msec) { - struct timeval tv; - unsigned int ms_now; - - gettimeofday(&tv, NULL); - ms_now = tv.tv_sec * 1000 + tv.tv_usec / 1000; - return ms_now + msec; -} - -static void t_sleep_ms(unsigned int 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