Software /
code /
prosody-modules
File
mod_statistics_cputotal/mod_statistics_cputotal.lua @ 4857:3f6711c1c66a
mod_default_bookmarks: Use whichever of mod_bookmarks and mod_bookmarks2 is enabled
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Jan 2022 00:05:45 +0100 |
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 } } });