# HG changeset patch # User Kim Alvefur # Date 1593477089 -7200 # Node ID 62355b8017727e257b97a17087d0d29aedd4ef19 # Parent d585deb8c882c7155cd3e3eefdbef886d0c7b2e8 net.server_epoll: Expose way to turn monotonic time into wall clock time diff -r d585deb8c882 -r 62355b801772 net/server_epoll.lua --- a/net/server_epoll.lua Mon Jun 29 21:43:51 2020 +0200 +++ b/net/server_epoll.lua Tue Jun 30 02:31:29 2020 +0200 @@ -904,6 +904,9 @@ add_task = addtimer; stop = closetimer; reschedule = reschedule; + to_absolute_time = function (t) + return t-monotonic()+realtime(); + end; }; listen = listen; loop = loop;