view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 4616:377546ab50f9

mod_delegation: fix bare jid disco nesting bare jid info discovery hook has been accidentally removed a while ago, as a result disco nesting for bare jids was not working anymore.
author Goffi <goffi@goffi.org>
date Sat, 10 Jul 2021 16:48: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
		}
	}
});