"Anthony E. Greene" <[EMAIL PROTECTED]> writes:
> On 08-Jul-2002/20:39 -0500, "Parhami, Faraz" <[EMAIL PROTECTED]>
> wrote:
>>I am looking for an equivalent of solaris 'gethrtime()' method. Is there
>>a method with high resolution in Red Hat? I have come accross
>>'timeofday'. Is this the right method to use? 'gethrtime' guarantees 1
>>microsecond precision.
>
> You might try asking this on the Linux Kernel Mailing List (lkml) or on a
> developer's list.

Take a look on your system for the perl module `Time::HiRes'.  If it
is installed `perldoc Time::HiRes' will pull up its man (pod)  page.

Its only a perl interface to existing functions... From Time::HiRes:
[...]
       gettimeofday ()
           In array context returns a 2 element array with the
           seconds and microseconds since the epoch.  In scalar
           context returns floating seconds like
           Time::HiRes::time() (see below).

       usleep ( $useconds )
           Sleeps for the number of microseconds specified.
           Returns the number of microseconds actually slept.
           Can sleep for more than one second unlike the usleep
           system call. See also Time::HiRes::sleep() below.
[...]

I don't think it came with perl-6.1 but it does with perl-6.8 and you
can get it from CPAN anyway.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to