File

libs/time.lua @ 446:62fb547bd31a

plugins.smacks: Convert counter to string in resumption Fixes traceback due to stricter stanza API
author Kim Alvefur <zash@zash.se>
date Thu, 10 Jun 2021 14:16:19 +0200
parent 440:14071b3a46df
child 471:788d4d91ef6b
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;
}