mod_statistics_cputotal/mod_statistics_cputotal.lua
author Stephen Paul Weber <singpolyma@singpolyma.net>
Mon, 11 Mar 2024 19:28:19 -0500
changeset 5864 fdff8cb54302
parent 1386 4557ac5c205d
permissions -rw-r--r--
mod_report_forward: fix address detection when there are multiple field values

-- 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
		}
	}
});