File

util/time.lua @ 9088:aa1b02411846

util.dataforms: Only include options in 'form' type forms Options should not be needed in other types of forms.
author Kim Alvefur <zash@zash.se>
date Fri, 03 Aug 2018 21:05:48 +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;
}