diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-04-08 15:36:51 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-04-08 15:36:51 +0200 |
commit | 9a1b9756939e12e328dea3633d9fe3cbde8f154b (patch) | |
tree | 22407c5d909d99866cb0cca7053288bd3d38d52b /tex/context/base/mkiv/syst-aux.lua | |
parent | 8dcafbcc0fbdde27cf480584450516602daacd42 (diff) | |
download | context-9a1b9756939e12e328dea3633d9fe3cbde8f154b.tar.gz |
2020-04-08 14:37:00
Diffstat (limited to 'tex/context/base/mkiv/syst-aux.lua')
-rw-r--r-- | tex/context/base/mkiv/syst-aux.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/syst-aux.lua b/tex/context/base/mkiv/syst-aux.lua index 46bb8e3f7..28fcb65fa 100644 --- a/tex/context/base/mkiv/syst-aux.lua +++ b/tex/context/base/mkiv/syst-aux.lua @@ -404,6 +404,15 @@ implement { end } +implement { + name = "elapsedsteptime", + arguments = "integer", + actions = function(n) + statistics.stoptiming("whatever") + context("%0.9f",statistics.elapsed("whatever")/(n > 0 and n or 1)) + end +} + local accuracy = table.setmetatableindex(function(t,k) local v = formatters["%0." ..k .. "f"] t[k] = v |