Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1475:58d48afca54d
mod_privacy_lists: Cache privacy lists for better performance with high traffic
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 27 Jul 2014 14:38:55 +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 } } });