view util/time.lua @ 7933:c91ec7689424

util.crand: Change argumen names to match some man page
author Kim Alvefur <zash@zash.se>
date Thu, 02 Mar 2017 00:15:04 +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;
}