File

mod_statistics_cputotal/mod_statistics_cputotal.lua @ 2706:3e97dae28215

mod_mam_archive: Use util.rsm (fixes #877, depends on recent 0.10+)
author Dennis Schridde <devurandom@gmx.net>
date Sat, 22 Apr 2017 11:24:18 +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
		}
	}
});