Dan Huston wrote:
Greetings All:

Hello,

I have a script that I am using to run a series of sql statements against two different Oracle databases to compare performance based on a request from our DBAs.

I am currently using code like this:

 $time1 = time();
 $result = `$this_comm`;
 $time2 = time();
 $time_tot = $time2 - $time1;
but the problem that I have is that most of the queries complete in less than one second so I either need to rewrite the queries to make them run longer or I need a more fine grained timing sstem that would do sub second timing, preferably something in the stand perl distro. Any suggestions?

Put the line:

use Time::HiRes 'time';

near the beginning of your program and it should do what you expect.



John
--
Those people who think they know everything are a great
annoyance to those of us who do.        -- Isaac Asimov

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to