view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 3480:5911030a1a66

mod_invite: Fire event that signals that an user has registered (thanks jeybe) This allows other modules to see this and do things, eg mod_watchregistrations
author Kim Alvefur <zash@zash.se>
date Thu, 07 Mar 2019 22:36:30 +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
		}
	}
});