Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 2039:464edd03099a
mod_mam: Add a bit of randomness to cleanup intervals to keep some time between multiple instances
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 02 Feb 2016 16:26:21 +0100 |
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 } } });