File

util/time.lua @ 8062:739bb455cafd

migrator: Remove broken distinction between a load error or a missing storage handler (worked with module()?)
author Kim Alvefur <zash@zash.se>
date Fri, 07 Apr 2017 13:06:06 +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;
}