Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 4886:cbe71ecb4677
mod_bookmarks: Add a stub that loads mod_bookmarks2
This has a magic meta marker that prevents loading on latest trunk as of
rev 7adfd5d29576 or nightly build 1616
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 05 Feb 2022 01:11:22 +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 } } });