diff options
author | Karl Berry <karl@freefriends.org> | 2018-10-21 20:36:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-10-21 20:36:09 +0000 |
commit | 854fa35fc4ede90cf35dae564298a94f8f99d8a4 (patch) | |
tree | 4dbdf28a055137517317eb5a3931e97cd6b106dd /Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua | |
parent | 49f149797d49ec0df2d6b2de44970a9e8560ac21 (diff) |
lualibs (21oct18)
git-svn-id: svn://tug.org/texlive/trunk@48965 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua b/Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua index 51893d585fe..6c08f34f6e7 100644 --- a/Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua +++ b/Master/texmf-dist/tex/luatex/lualibs/lualibs-trac-inf.lua @@ -82,9 +82,13 @@ local seconds = function(n) return n or 0 end -- -- end -local function starttiming(instance) +local function starttiming(instance,reset) local timer = timers[instance or "notimer"] local it = timer.timing + if reset then + it = 0 + timer.loadtime = 0 + end if it == 0 then timer.starttime = ticks() if not timer.loadtime then |