Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 3830:63d8072dc864
mod_nodeinfo2: Mention mod_lastlog as a dep in the README
author | Maxime “pep” Buquet <pep@bouah.net> |
---|---|
date | Fri, 03 Jan 2020 16:33:04 +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 } } });