view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 5476:575f52b15f5a

mod_http_oauth2: Return OAuth error for authz code store error
author Kim Alvefur <zash@zash.se>
date Thu, 18 May 2023 14:07:37 +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
		}
	}
});