File

mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1393:4baaa5a66a5a

mod_log_sasl_mech: Log SASL mechanism attached to session
author Kim Alvefur <zash@zash.se>
date Fri, 25 Apr 2014 17:11:33 +0200
parent 1386:4557ac5c205d
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
		}
	}
});