Hi, The just uploaded patch is much better than the original, both in the api and in the change file quality. Hans and I are pleased with it, so as far as we are concerned, this is as-good-as-it-gets. Of course we hope Thanh is willing to integrate this into a future pdftex. Two new primitives are provided: \item \verb|\elapsedtime| is a read-only integer that (initially) returns the amount of time passed since the start of this run. This amount is given in `scaled seconds': the value 65536 counts as one second. If more time has passed than 32767 seconds, \verb|\maxint| will be returned. \item \verb|\resettime| updates the internal timer, such that subsequent calls to \verb|\elapsedtime| will restart from 0. A bit of example code (in plain): {\catcode`\p=12 \catcode`\t=12 \gdef\WITHOUTPT#1pt{#1}} \def\withoutpt#1{\expandafter\WITHOUTPT#1} \resettimer \def\a{} \loop \ifnum\count1<5000 \edef\a{a\a}\advance\count1 1 \repeat \dimen0=\elapsedtime sp \message{loop took \expandafter\withoutpt\the\dimen0seconds} \bye Greetings, Taco (and sorry for the extra noise on this list) noreply@sarovar.org wrote:
Patches item #341, was opened at 2005-05-10 19:17 You can respond by visiting: http://sarovar.org/tracker/?func=detail&atid=495&aid=341&group_id=106