view util/time.lua @ 7981:bbb900cfcfa5

luacheckrc: Add module:get_option_scalar to known globals
author Kim Alvefur <zash@zash.se>
date Thu, 16 Mar 2017 21:05:44 +0100
parents 72e48bddf617
children
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;
}