libs/time.lua@b119dc4d8bc2
libs/time.lua
Thu, 10 Jun 2021 11:58:23 +0200
- author
- Kim Alvefur <zash@zash.se>
- date
- Thu, 10 Jun 2021 11:58:23 +0200
- changeset 445
- b119dc4d8bc2
- parent 440
-
14071b3a46df
- child 471
-
788d4d91ef6b
- permissions
- -rw-r--r--
plugins.smacks: Don't warn about zero stanzas acked
It's only if the count somehow goes backwards that something is really
wrong. An ack for zero stanzas is fine and we don't need to do anything.
-- 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;
}