view util/time.lua @ 8291:fba1ea67f5c0

util.encodings: Use the 'idx' argument correctly [-Wunused-parameter]
author Kim Alvefur <zash@zash.se>
date Thu, 05 Oct 2017 12:48:36 +0200
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;
}