Software /
code /
prosody
File
util/time.lua @ 8127:3e443d6791e6
util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 25 Apr 2017 01:35:13 +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; }