Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: Get Exact Time w/out Modules

by iburrell (Chaplain)
on Nov 17, 2003 at 22:07 UTC ( #307846=note: print w/replies, xml ) Need Help??


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

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.

  • Comment on Re: Re: Re: Get Exact Time w/out Modules

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://307846]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2022-05-21 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?