view util/time.lua @ 8066:5eec340c75fb

migration/prosody_sql: Commit transaction when all items have been processed
author Kim Alvefur <zash@zash.se>
date Sat, 08 Apr 2017 16:33:42 +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;
}