view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 6308:6015477b6dec

mod_voipms: Update documentation, from Stephen
author Chaz Kettleson <chaz@pyr3x.com>
date Fri, 01 Aug 2025 18:41:14 -0400
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
		}
	}
});