mod_statistics_cputotal/mod_statistics_cputotal.lua
author Stephen Paul Weber <singpolyma@singpolyma.net>
Sun, 25 Feb 2024 19:17:40 -0500
changeset 5850 8b868c00e38e
parent 1386 4557ac5c205d
permissions -rw-r--r--
mod_muc_adhoc_bots: Fix bug preventing multiple commands from showing

-- 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
		}
	}
});