view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1381:11b6170a50f7

mod_s2s_auth_fingerprint: Log current fingerprint and match status
author Kim Alvefur <zash@zash.se>
date Sat, 05 Apr 2014 13:41:12 +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
		}
	}
});