aboutsummaryrefslogtreecommitdiff
path: root/runloop.c
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-05-08 22:05:51 +0200
committertomsmeding <tom.smeding@gmail.com>2017-05-08 22:06:26 +0200
commit886fc77026a2a805e5d166b2f87bd24720ad9ea4 (patch)
treeaae24239045be0634e3d11eadbd698cf2d7628a1 /runloop.c
parent3f1a68789d82fb55071e000efd61564fa4f2bc1f (diff)
server: Factor out make_timestamp() into util.c
Diffstat (limited to 'runloop.c')
-rw-r--r--runloop.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/runloop.c b/runloop.c
index 119bf01..f95975c 100644
--- a/runloop.c
+++ b/runloop.c
@@ -3,6 +3,7 @@
#include <sys/select.h>
#include <sys/time.h>
#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;