in reply to Milliseconds

Thanks guys... what I really want to do is calculate generation time for my web page in milliseconds.

Replies are listed 'Best First'.
Re: Re: Milliseconds
by jeorgen (Pilgrim) on Feb 07, 2001 at 23:11 UTC
    Then you want as mentioned by Fastolfe, Time::HiRes, with code something like this:
    use Time::HiRes qw(gettimeofday); $th0 = gettimeofday; #your code goes here $th1 = gettimeofday; print "<P>Script took: ", sprintf ("%5.3f",($th1 - $th0)), " seconds t +o the millisecond att www.yoursite.com";

    /jeorgen

      If one uses un*x, a 'time perl script' would give time in millisecs as well.

      Jeroen
      "We are not alone"(FZ)