P
Patrick Hartman
I was using this to calculate execution time at the bottom of a
script:
print time - $^T;
However I noticed that the time just got a little bit longer everytime
I ran it despite the apparent page load time not changing at all. I
changed it to this:
printf "BEG: $^T \n";
printf "END: ". time;
And the $^T was outputting the same start time for every execution;
every time I would load the page, the time just got longer and longer
since only the end time was updating.
This problem is only happening when I execute from mod_perl / Apache.
If I go to the command line and execute it through there it works
fine. I have Apache on my local computer, so both places are pointing
to the same installation of Perl.
Any ideas what would be causing this?
Thanks,
Patrick
script:
print time - $^T;
However I noticed that the time just got a little bit longer everytime
I ran it despite the apparent page load time not changing at all. I
changed it to this:
printf "BEG: $^T \n";
printf "END: ". time;
And the $^T was outputting the same start time for every execution;
every time I would load the page, the time just got longer and longer
since only the end time was updating.
This problem is only happening when I execute from mod_perl / Apache.
If I go to the command line and execute it through there it works
fine. I have Apache on my local computer, so both places are pointing
to the same installation of Perl.
Any ideas what would be causing this?
Thanks,
Patrick