http://qs1969.pair.com?node_id=307836


in reply to Re: Get Exact Time w/out Modules
in thread Get Exact Time w/out Modules

For the most part perl covers our needs wonderfully...cases like this are the exception. We don't have a C compiler either (they make you buy an SDK for that), so perl is more or less our only choice.

Replies are listed 'Best First'.
Re: Re: Re: Get Exact Time w/out Modules
by iburrell (Chaplain) on Nov 17, 2003 at 22:07 UTC
    If you don't have a C compiler, then you are going to have a hard time solving this problem. Presumably, the operating system has a function that give the time with a higher accuracy than the Perl builtin time(). Calling the C API from Perl requires an XS module compiled by a C compiler.

    The Time::HiRes module provides an interface to the gettimeofday function that will do the job. But you can't compile it because you don't have a C compiler. And can't install Perl modules.