diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-01-31 07:57:12 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-01-31 07:57:12 +0100 |
commit | dcdc68164b16831c1e5bd6bbd5fa9c0aecacf890 (patch) | |
tree | c0f5a96bec018e862a1cbad96d2d49a231903228 /ecp/src/posix/time.c | |
parent | 63e0f6da6c90729a259a2fc36eabc26d18898698 (diff) |
fixed build
Diffstat (limited to 'ecp/src/posix/time.c')
-rw-r--r-- | ecp/src/posix/time.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ecp/src/posix/time.c b/ecp/src/posix/time.c deleted file mode 100644 index 111e598..0000000 --- a/ecp/src/posix/time.c +++ /dev/null @@ -1,24 +0,0 @@ -#include <unistd.h> -#include <sys/time.h> - -#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; -} - -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 |