view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 2717:14f62b971160

mod_muc_log/README: Remove odd duplicate item under Compatibility (thanks Tobias)
author Kim Alvefur <zash@zash.se>
date Thu, 25 May 2017 16:47:29 +0200
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
		}
	}
});