Robert Vaughn wrote:
I am trying to time some programs to see how long they
run.  I have looked at Time::HiRes but have not been
able to install it.  I am using RH Linux 7.3 and Perl
v5.6.1.

The computer is in a lab without Internet access so I
don't have an easy way to simply 'install' the
package.

I've tried manually installing Time::HiRes but that
didn't get me too far.

An example of the program I've written so far is...

foreach (@file)
{
$starttime=time;
## do something...
$stoptime=time;
}
$duration=$stoptime-$starttime;

This works fine but it only gives me timing
granularity to a one second level of detail.

Worst case I need to be able to measure at least
1/100th of a second.

I would like to avoid using a Perl module but haven't
found any workable solution yet.
select (undef, undef, undef, 0.1);  # 0.1 is fractional seconds (1/10th in this case)

--
  ,-/-  __      _  _         $Bill Luebkert   ICQ=162126130
 (_/   /  )    // //       DBE Collectibles   Mailto:dbe@;todbe.com
  / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to