diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-08-15 23:18:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-15 23:18:33 +0200 |
commit | 144f6d16fd79bd0496b3ae379b69227e0d9bbfa9 (patch) | |
tree | 228c85b38d015ec6237976808ea82b8616b22e21 /lualibs-trac-inf.lua | |
parent | f3495d7db72f854d8f7560a6ff11fa9012003062 (diff) | |
parent | 8ee68eedb5cbdf06585f6f37bdc361b69437a25d (diff) | |
download | lualibs-144f6d16fd79bd0496b3ae379b69227e0d9bbfa9.tar.gz |
Merge pull request #30 from phi-gamma/master
sync with Context as of 2016-08-15
Diffstat (limited to 'lualibs-trac-inf.lua')
-rw-r--r-- | lualibs-trac-inf.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lualibs-trac-inf.lua b/lualibs-trac-inf.lua index f4c4e55..a1d7fb0 100644 --- a/lualibs-trac-inf.lua +++ b/lualibs-trac-inf.lua @@ -14,7 +14,7 @@ if not modules then modules = { } end modules ['trac-inf'] = { local type, tonumber, select = type, tonumber, select local format, lower, find = string.format, string.lower, string.find local concat = table.concat -local clock = os.gettimeofday or os.clock -- should go in environment +local clock = os.gettimeofday or os.clock -- should go in environment local setmetatableindex = table.setmetatableindex local serialize = table.serialize @@ -183,6 +183,7 @@ end function statistics.runtime() stoptiming(statistics) + stoptiming(statistics) -- somehow we can start the timer twice, but where return statistics.formatruntime(elapsedtime(statistics)) end |