File

util/time.lua @ 8884:a387e00471d6

Backed out changeset cd186331ab1f (subject in disco#info) Makes more sense if you must join the room to see the subject, since there’s a separate public description field.
author Kim Alvefur <zash@zash.se>
date Thu, 07 Jun 2018 18:53:30 +0200
parent 7461:72e48bddf617
line wrap: on
line source

-- Import gettime() from LuaSocket, as a way to access high-resolution time
-- in a platform-independent way

local socket_gettime = require "socket".gettime;

return {
	now = socket_gettime;
}