view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1461:deb79c2357bb

mod_private_adhoc: initial commit of new module
author Thomas Raschbacher <lordvan@lordvan.com>
date Sat, 28 Jun 2014 00:36:40 +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
		}
	}
});