mod_statistics_cputotal/mod_statistics_cputotal.lua
author Kim Alvefur <zash@zash.se>
Fri, 05 Apr 2019 18:57:51 +0200
changeset 3553 b059a3fb2a58
parent 1386 4557ac5c205d
permissions -rw-r--r--
Update modules using mod_http_files to serve files for change in Prosody trunk See commits in Prosody: f1594893998f afc48785f738 a39f3681d685 c93fdec624c7

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