view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 5555:34b63d0144c3

mod_oidc_userinfo_vcard4: Fix typo
author Kim Alvefur <zash@zash.se>
date Sun, 18 Jun 2023 15:28:13 +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
		}
	}
});