diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-02-18 11:28:41 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-02-18 11:28:41 +0100 |
commit | 298afdcdcb9d3c88fcc9abdbf17ac66f2f5006a1 (patch) | |
tree | 44bbefa57072479622fa253684ec3cb96258255f /tex/context/base/mkxl/mlib-cnt.lmt | |
parent | 84aae20fa32c9a50ae1c63576573f52d010de43b (diff) | |
download | context-298afdcdcb9d3c88fcc9abdbf17ac66f2f5006a1.tar.gz |
2021-02-18 10:24:00
Diffstat (limited to 'tex/context/base/mkxl/mlib-cnt.lmt')
-rw-r--r-- | tex/context/base/mkxl/mlib-cnt.lmt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tex/context/base/mkxl/mlib-cnt.lmt b/tex/context/base/mkxl/mlib-cnt.lmt index 667384ed7..bddcb33b8 100644 --- a/tex/context/base/mkxl/mlib-cnt.lmt +++ b/tex/context/base/mkxl/mlib-cnt.lmt @@ -53,7 +53,8 @@ local bor = bit32.bor -- it's really time to ditch support for luajit local starttiming = statistics.starttiming local stoptiming = statistics.stoptiming -local elapsedtime = statistics.elapsedtime +local resettiming = statistics.resettiming +local elapsedtiming = statistics.elapsed local formatters = string.formatters local setmetatableindex = table.setmetatableindex @@ -250,6 +251,7 @@ end function mp.lmt_contours_start() + resettiming("lmt_contours") starttiming("lmt_contours") nofcontours = nofcontours + 1 @@ -546,14 +548,12 @@ end function mp.lmt_contours_stop() local p = getparameterset() - local e = stoptiming("lmt_contours") + stoptiming("lmt_contours") setcache(p) p.result = nil local f = p["function"] local l = p.functions - report("index %i, %0.3f seconds for: %s", - nofcontours, e, "[ " .. concat(l or { f } ," ] [ ") .. " ]" - ) + report("index %i, %0.3f seconds for: %s", nofcontours, elapsedtiming("lmt_contours"), "[ " .. concat(l or { f } ," ] [ ") .. " ]") end function mp.lmt_contours_bitmap_set() |