Software /
code /
prosody-modules
File
mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1423:4852fc446d26
mod_profile: Use the item id "current" as recomended in the Singleton Nodes section of XEP-0060
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 30 May 2014 14:57:34 +0200 |
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 } } });