File

util/time.lua @ 8862:900dff5ef498

util.dataforms: Add initial tests This covers basic form generation, that the fields have the correct attributes, children and text content.
author Kim Alvefur <zash@zash.se>
date Sat, 02 Jun 2018 19:47:09 +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;
}