Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 3005:902ecd6400bd
mod_mam_muc/README: Clarify that only v0.5 of XEP-0313 is supported when used with Prosody 0.10.x
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 17 Apr 2018 14:00:40 +0200 |
parents | 4557ac5c205d |
children |
line wrap: on
line source
-- Provides total CPU time, useful for DERIVE module:set_global(); module:provides("statistics", { statistics = { cpu_total = { -- milliseconds of CPU time used get = function() return os.clock() * 1000; end } } });