Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 3782:70e5bab388d8
mod_measure_message_e2ee: Make this module non-global; users can aggregate data if they care about that
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 29 Dec 2019 20:42:34 +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 } } });