view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 2929:3a104a900af1

mod_register_web: Pass username to generate_register_response
author Michel Le Bihan <michel@lebihan.pl>
date Tue, 13 Mar 2018 21:12:21 +0100
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
		}
	}
});