Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 4152:87daef9ed4e7
Improve mod_firewall readme
| author | Christian Weiske <cweiske@cweiske.de> |
|---|---|
| date | Mon, 21 Sep 2020 21:57:25 +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 } } });
