view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 5410:644b2f2b9b52

mod_http_oauth2: Link to RFC 7009: OAuth 2.0 Token Revocation
author Kim Alvefur <zash@zash.se>
date Tue, 02 May 2023 19:06:17 +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
		}
	}
});