Comparison

mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1378:aa371405db34

mod_statistics_cputotal: Module that collects accumulated CPU usage statistics
author Kim Alvefur <zash@zash.se>
date Thu, 03 Apr 2014 20:56:59 +0200
child 1386:4557ac5c205d
comparison
equal deleted inserted replaced
1377:92f3b4d81b52 1378:aa371405db34
1 -- Provides total CPU time, useful for DERIVE
2
3 module:provides("statistics", {
4 statistics = {
5 cpu_total = { -- milliseconds of CPU time used
6 get = function()
7 return os.clock() * 1000;
8 end
9 }
10 }
11 });