Software / code / prosody
File
util/time.lua @ 8346:a567a646cf21
Makefile: Tell busted to use the configured Lua version (or C modules won't load)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 22 Oct 2017 20:41:11 +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; }