view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1480:92b930be261f

mod_privacy_lists: Open 'privacy' storage (module:open_store() defaults to the name of the module)
author Kim Alvefur <zash@zash.se>
date Sat, 09 Aug 2014 23:03:28 +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
		}
	}
});