mod_statistics_cputotal/mod_statistics_cputotal.lua
author Seve Ferrer <seve@delape.net>
Tue, 15 Dec 2020 14:16:11 +0100
changeset 4305 bcb2b9adfcde
parent 1386 4557ac5c205d
permissions -rw-r--r--
mod_muc_http_auth: Use get_option_set API properly

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