File

util/time.lua @ 9083:5d3639e415bd

util.dataforms: Add failing test for #1177
author Kim Alvefur <zash@zash.se>
date Sat, 30 Jun 2018 20:49:26 +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;
}