view util/time.lua @ 7966:30309fd01d76

util.pposix: Use correct type for limits [-Wconstant-conversion]
author Kim Alvefur <zash@zash.se>
date Tue, 07 Mar 2017 22:36:43 +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;
}