File

mod_statistics_cputotal/mod_statistics_cputotal.lua @ 2027:d4227837cf06

mod_storage_xmlarchive/README: Point directly to raw file that should work in 0.9
author Kim Alvefur <zash@zash.se>
date Tue, 19 Jan 2016 19:51:50 +0100
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
		}
	}
});