Comparison

net/server_epoll.lua @ 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
parent 10985:758ce12586de
child 10989:b824fe9d0c8b
comparison
equal deleted inserted replaced
10986:d585deb8c882 10987:62355b801772
902 timer = { 902 timer = {
903 -- API-compatible with util.timer 903 -- API-compatible with util.timer
904 add_task = addtimer; 904 add_task = addtimer;
905 stop = closetimer; 905 stop = closetimer;
906 reschedule = reschedule; 906 reschedule = reschedule;
907 to_absolute_time = function (t)
908 return t-monotonic()+realtime();
909 end;
907 }; 910 };
908 listen = listen; 911 listen = listen;
909 loop = loop; 912 loop = loop;
910 closeall = closeall; 913 closeall = closeall;
911 setquitting = setquitting; 914 setquitting = setquitting;