File

mod_statistics_cputotal/mod_statistics_cputotal.lua @ 3300:65dd8ebbd82c

mod_profile: Update README file next to recent mod_pep changes
author Minami-o Le Sabreur <minami-o@biboumail.fr>
date Fri, 07 Sep 2018 20:25:07 -0400
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
		}
	}
});