I'm tracking execution time of a bunch of scripts, and want to drop in
"tracker.pl" into each script...the problem I'm faced with is if a
user walks away from their computer while the script is waiting for
input from STDIN.

I currently wrap any <STDIN> reads within the tools like:

pauseTimer();
...read from <STDIN>..
unpauseTimer();

This is so I can subtract out the weight time (in seconds) from the
overall elapsed execution time.

Is it possible to trigger these two pause/unpauseTimer() sub routines
automatically from my library when STDIN is read?

similar to how BEGIN/END blocks work, but with PRE-STDIN, POST-STDIN
functionality?

Thanks,

--
Anthony Ettinger
Signature: http://chovy.dyndns.org/hcard.html

--
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