From 0fe5ff760de05e3f9e79b7448df12dd95c843e4a Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 14 Apr 2013 23:20:34 +0200 Subject: import trac-inf.lua --- lualibs-trac-inf.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lualibs-trac-inf.lua b/lualibs-trac-inf.lua index fdc07d9..eefc15a 100644 --- a/lualibs-trac-inf.lua +++ b/lualibs-trac-inf.lua @@ -50,7 +50,7 @@ local function starttiming(instance) timer.timing = it + 1 end -local function stoptiming(instance, report) +local function stoptiming(instance) local timer = timers[instance or "notimer"] local it = timer.timing if it > 1 then @@ -62,9 +62,6 @@ local function stoptiming(instance, report) local loadtime = stoptime - starttime timer.stoptime = stoptime timer.loadtime = timer.loadtime + loadtime - if report then - statistics.report("load time %0.3f",loadtime) - end timer.timing = 0 return loadtime end -- cgit v1.2.3