diff options
author | Hans Hagen <pragma@wxs.nl> | 2010-02-22 19:38:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2010-02-22 19:38:00 +0100 |
commit | a81728fa7c7e1b92d436835ac4019b2e46f80853 (patch) | |
tree | 4add4047ed2e858f96a22f5f9350983b0b1a47c1 /tex/context/base/trac-inf.lua | |
parent | 8b61273b8c492e094d65764f3151d779d2f7c6cc (diff) | |
download | context-a81728fa7c7e1b92d436835ac4019b2e46f80853.tar.gz |
beta 2010.02.22 19:38
Diffstat (limited to 'tex/context/base/trac-inf.lua')
-rw-r--r-- | tex/context/base/trac-inf.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tex/context/base/trac-inf.lua b/tex/context/base/trac-inf.lua index 1a1977f3f..84fa5507a 100644 --- a/tex/context/base/trac-inf.lua +++ b/tex/context/base/trac-inf.lua @@ -84,6 +84,12 @@ function statistics.elapsedindeed(instance) return t > statistics.threshold end +function statistics.elapsedseconds(instance,rest) -- returns nil if 0 seconds + if statistics.elapsedindeed(instance) then + return format("%s seconds %s", statistics.elapsedtime(instance),rest or "") + end +end + -- general function function statistics.register(tag,fnc) |