view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1537:88e0b4bace88

mod_websocket: Remove. This is a core module for Prosody 0.10 https://prosody.im/doc/modules/mod_websocket
author Florian Zeitz <florob@babelmonkeys.de>
date Sat, 25 Oct 2014 01:27:52 +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
		}
	}
});