diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-02 21:50:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-02 21:50:45 +0000 |
commit | aa1776c78dfdb456e2228fbceaa886e64e36174c (patch) | |
tree | 7967af7f0f2079a632809a813221918af16ba8cc /Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua | |
parent | a86d14742b305868a1c2b1f33f1263a6b7d0e03d (diff) |
oberdiek (1may12)
git-svn-id: svn://tug.org/texlive/trunk@26177 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua')
-rw-r--r-- | Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua b/Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua index 02570a68902..0bee48a1cc6 100644 --- a/Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua +++ b/Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua @@ -9,7 +9,7 @@ -- This is a generated file. -- -- Project: pdftexcmds --- Version: 2011/04/22 v0.16 +-- Version: 2011/11/29 v0.20 -- -- Copyright (C) 2007, 2009-2011 by -- Heiko Oberdiek <heiko.oberdiek at googlemail.com> @@ -34,14 +34,14 @@ -- This work consists of the main source file pdftexcmds.dtx -- and the derived files -- pdftexcmds.sty, pdftexcmds.pdf, pdftexcmds.ins, pdftexcmds.drv, --- pdftexcmds-test1.tex, pdftexcmds-test2.tex, +-- pdftexcmds.bib, pdftexcmds-test1.tex, pdftexcmds-test2.tex, -- pdftexcmds-test-shell.tex, pdftexcmds-test-escape.tex, -- oberdiek.pdftexcmds.lua, pdftexcmds.lua. -- module("oberdiek.pdftexcmds", package.seeall) local systemexitstatus function getversion() - tex.write("2011/04/22 v0.16") + tex.write("2011/11/29 v0.20") end function strcmp(A, B) if A == B then @@ -272,6 +272,17 @@ function filemdfivesum(filename) end end end +local basetime = 0 +function resettimer() + basetime = os.clock() +end +function elapsedtime() + local val = (os.clock() - basetime) * 65536 + .5 + if val > 2147483647 then + val = 2147483647 + end + tex.write(string.format("%d", val)) +end function shellescape() if os.execute then if status |