summaryrefslogtreecommitdiff
path: root/tex/context/base/mlib-ctx.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mlib-ctx.lua')
-rw-r--r--tex/context/base/mlib-ctx.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/tex/context/base/mlib-ctx.lua b/tex/context/base/mlib-ctx.lua
index 2b16af28e..821b702c6 100644
--- a/tex/context/base/mlib-ctx.lua
+++ b/tex/context/base/mlib-ctx.lua
@@ -41,12 +41,11 @@ end
statistics.register("metapost processing time", function()
local n = metapost.n
if n > 0 then
- local e = metapost.externals.n
+ local e, t = metapost.externals.n, statistics.elapsedtime
local str = format("%s seconds, loading: %s seconds, execution: %s seconds, n: %s",
- statistics.elapsedtime(metapost), statistics.elapsedtime(mplib),
- statistics.elapsedtime(metapost.exectime), n)
+ t(metapost), t(mplib), t(metapost.exectime), n)
if e > 0 then
- return format("%s, external: %s seconds (%s calls)", str, statistics.elapsedtime(metapost.externals), e)
+ return format("%s, external: %s seconds (%s calls)", str, t(metapost.externals), e)
else
return str
end