diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-04-14 23:20:34 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-04-14 23:20:34 +0200 |
commit | 0fe5ff760de05e3f9e79b7448df12dd95c843e4a (patch) | |
tree | 04e2111ec6bd8530a139667fb67f86a96b5246dc /lualibs-trac-inf.lua | |
parent | 7b2ac38cf888ed3269b5e3ef72a80fa4ae12841f (diff) | |
download | lualibs-0fe5ff760de05e3f9e79b7448df12dd95c843e4a.tar.gz |
import trac-inf.lua
Diffstat (limited to 'lualibs-trac-inf.lua')
-rw-r--r-- | lualibs-trac-inf.lua | 5 |
1 files changed, 1 insertions, 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 |