diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-08-15 22:39:47 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2016-08-15 22:39:47 +0200 |
commit | 8ee68eedb5cbdf06585f6f37bdc361b69437a25d (patch) | |
tree | 228c85b38d015ec6237976808ea82b8616b22e21 /lualibs-trac-inf.lua | |
parent | 935306412b57f436fcb5307a14941ded3eb3168d (diff) | |
download | lualibs-8ee68eedb5cbdf06585f6f37bdc361b69437a25d.tar.gz |
sync with Cotnext 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 |