Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 2747:a688b31295ea
mod_csi_battery_saver: only depend on mod_track_muc_joins if actually used
author | tmolitor <thilo@eightysoft.de> |
---|---|
date | Sat, 19 Aug 2017 17:09:59 +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 } } });