summaryrefslogtreecommitdiff
path: root/code/core/posix
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2017-08-26 21:59:08 +0200
committerUros Majstorovic <majstor@majstor.org>2017-08-26 21:59:08 +0200
commitb83e58e21ea7dda57ddfda47bd1539d15abe687f (patch)
tree801339717059b1be494e872d90836b4e4564d462 /code/core/posix
parente800e8df9fbe633d09a534ae07eb361833572f1a (diff)
fragments and packet timestamp implemented
Diffstat (limited to 'code/core/posix')
-rw-r--r--code/core/posix/time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/code/core/posix/time.c b/code/core/posix/time.c
index 3dd3920..c7a238a 100644
--- a/code/core/posix/time.c
+++ b/code/core/posix/time.c
@@ -3,16 +3,16 @@
#include <core.h>
-static unsigned int t_abstime_ms(unsigned int msec) {
+static ecp_cts_t t_abstime_ms(ecp_cts_t msec) {
struct timeval tv;
- unsigned int ms_now;
+ 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(unsigned int msec) {
+static void t_sleep_ms(ecp_cts_t msec) {
usleep(msec*1000);
}