Anthony Ettinger wrote:
> 
> I'm not trying to benchmark, just gather some real-world data in my tools.
> 
> Basically, I set $start_time = time();, subtract out time waiting during
> user input, and take the difference of $end_time = time();
> 
> Whether this is a good way of gather the data is beyond the question...I'm
> curious if there's a way to trigger a pause/unpause routine automatically
> from my library when <STDIN> is used.

You may just want to use the times() function:

perldoc -f times

It returns the time the CPU uses so it won't include the time waiting for IO.



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to