File

util/time.lua @ 8700:d611c46c6787

Backed out changeset a0f728c3aa69 in favor of 580c13ed0ca1
author Kim Alvefur <zash@zash.se>
date Thu, 29 Mar 2018 16:57:18 +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;
}