[pdftex] [tex-live] \pdfelapsedtime
oberdiek at uni-freiburg.de
Mon Nov 2 01:56:28 CET 2009
On Mon, Nov 02, 2009 at 08:23:19AM +1030, Will Robertson wrote:
> On 02/11/2009, at 3:20 AM, Joseph Wright wrote:
> >See the same here on Snow Leopard (MacOS X 10.6.1, Intel) with an up
> >to date TeX Live, and on Ubuntu (Janty), but not on Windows (TL also
> >up to date). Not too surprising that the Mac and Ubuntu give the
> >same result.
> Thanks for the confirmation.
I can also confirm it (Linux). The value 65536 is 1s exactly.
If you wait a little longer:
Then you can see some multiples of 65536.
> Does anyone here know why this might be happening?
Something went wrong with the compilation.
texk/web2c/lib/texmfmp.c contains get_seconds_and_micros:
get_seconds_and_micros (integer *seconds, integer *micros)
#if defined (HAVE_GETTIMEOFDAY)
struct timeval tv;
*seconds = tv.tv_sec;
*micros = tv.tv_usec;
#elif defined (HAVE_FTIME)
struct timeb tb;
*seconds = tb.time;
*micros = tb.millitm*1000;
time_t myclock = time((time_t*)NULL);
*seconds = myclock;
*micros = 0;
Apparently the micros are always zero, that means, neither
HAVE_GETTIMEOFDAY nor HAVE_FTIME has been set.
texk/web2c/configure doesn't check for ftime and gettimeofday,
but the version of pdftex 1.40.9 does.
(Also texk/web2c/c-auto.in of pdftex 1.40.9 contains:
/* Define to 1 if you have the `ftime' function. */
/* Define to 1 if you have the `gettimeofday' function. */
1.40.10 misses these lines.)
Heiko <oberdiek at uni-freiburg.de>
More information about the pdftex