Changeset

10987:62355b801772

net.server_epoll: Expose way to turn monotonic time into wall clock time
author Kim Alvefur <zash@zash.se>
date Tue, 30 Jun 2020 02:31:29 +0200
parents 10986:d585deb8c882
children 10988:9dcbbb1d12c3
files net/server_epoll.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;