From 886fc77026a2a805e5d166b2f87bd24720ad9ea4 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Mon, 8 May 2017 22:05:51 +0200 Subject: server: Factor out make_timestamp() into util.c --- runloop.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'runloop.c') diff --git a/runloop.c b/runloop.c index 119bf01..f95975c 100644 --- a/runloop.c +++ b/runloop.c @@ -3,6 +3,7 @@ #include #include #include "runloop.h" +#include "util.h" struct fd_list_item{ @@ -25,12 +26,6 @@ static void constructor(void){ } -static i64 make_timestamp(void){ - struct timeval tv; - gettimeofday(&tv,NULL); - return (i64)tv.tv_sec*1000000+tv.tv_usec; -} - void runloop_set_timeout(i64 usecs,runloop_callback *cb){ timeout_usecs=usecs; timeout_callback=cb; -- cgit v1.2.3-70-g09d2