diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-05-08 22:05:51 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-05-08 22:06:26 +0200 |
commit | 886fc77026a2a805e5d166b2f87bd24720ad9ea4 (patch) | |
tree | aae24239045be0634e3d11eadbd698cf2d7628a1 /runloop.c | |
parent | 3f1a68789d82fb55071e000efd61564fa4f2bc1f (diff) |
server: Factor out make_timestamp() into util.c
Diffstat (limited to 'runloop.c')
-rw-r--r-- | runloop.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; |