File

mod_statistics_cputotal/mod_statistics_cputotal.lua @ 3234:b1e25943a004

mod_bookmarks: Fire empty and updated events, for other modules to use.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 18 Aug 2018 16:55:52 +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
		}
	}
});