Software /
code /
prosody-modules
File
mod_statistics_cputotal/mod_statistics_cputotal.lua @ 2369:2fb11d34087e
mod_firewall: README: Update for LIMIT 'on' and document expression syntax
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 15 Nov 2016 21:02:46 +0000 |
parent | 1386:4557ac5c205d |
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 } } });