view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 2411:e327b06b9a1b

mod_track_muc_joins/README: Mention how the 210 status code for when the room rewrites the users nickname is not yet handled
author Kim Alvefur <zash@zash.se>
date Sat, 03 Dec 2016 15:28:22 +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
		}
	}
});