File

mod_statistics_cputotal/mod_statistics_cputotal.lua @ 6001:0afd0adbe050

Update mod_smacks status to obsolete - included in prosody
author Menel <menel@snikket.de>
date Mon, 21 Oct 2024 21:50:58 +0200 (5 months ago)
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
		}
	}
});