view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1383:465e5d79551b

mod_s2s_auth_dane: Improve debug message and log it on the session
author Kim Alvefur <zash@zash.se>
date Thu, 10 Apr 2014 22:40:11 +0200
parents aa371405db34
children 4557ac5c205d
line wrap: on
line source

-- Provides total CPU time, useful for DERIVE

module:provides("statistics", {
	statistics = {
		cpu_total = { -- milliseconds of CPU time used
			get = function()
				return os.clock() * 1000;
			end
		}
	}
});