File

mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1773:fb2b9a2e2316

mod_mam: Support both spellings of XEP-0334 processing hints until XEP is clarified
author Kim Alvefur <zash@zash.se>
date Sat, 18 Jul 2015 23:11:59 +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
		}
	}
});