view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1615:d0fd8a29b724

mod_tls_policy: Include which part of the cipher that did not match the policy in stream error
author Kim Alvefur <zash@zash.se>
date Mon, 23 Feb 2015 15:45:11 +0100
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
		}
	}
});