http://qs321.pair.com?node_id=634876

wruehl has asked for the wisdom of the Perl Monks concerning the following question:

I'm writing a polling script that hits the same port twice to get the difference in traffic data. Just running the snmp sessions right after each other is ineffective as it is too fast. I'd like to run sleep to delay the next grab, but I don't want to sleep for the whole second, as it would slow the execution time of the script greatly, making it take 3 to 4 times as long to finish. I'd like to try and make it sleep for .1 or .2 seconds.

Can anyone tell me how to do this?

Thanks