view util/time.lua @ 7935:96fa5ef5d613

configure: Set C standard to C99
author Kim Alvefur <zash@zash.se>
date Thu, 02 Mar 2017 00:27:46 +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;
}