Usage: include execution_time.php In header of your php script place $startTime = slog_time(); In footer of your php script place $totalTime = elog_time($startTime); print "Execution Time: $totalTime Seconds";
PHP: Execution Time Function
Started by
Guest_Jordan_*
, Aug 10 2006 05:08 PM
18 replies to this topic
#1
Guest_Jordan_*
Posted 10 August 2006 - 05:08 PM
Guest_Jordan_*
This php file has two functions to determine start time and finish time. Then displays total execution time in seconds.
|
|
|
#2
Posted 11 May 2008 - 03:26 AM
Thanx for that script
#3
Guest_Jaan_*
Posted 11 May 2008 - 01:51 PM
Guest_Jaan_*
looking good.. thanks
#5
Posted 18 May 2008 - 10:48 AM
here is more simple than it?
Quote
in the header of your php:
$bgtime=time();
in the footer of your php:
Print "Execution Time: ".(time()-$bgtime);
$bgtime=time();
in the footer of your php:
Print "Execution Time: ".(time()-$bgtime);
Http://boy.us.com/ Multi Utilities Sites
Softwares Downloads, Proxy, Freehosting, ....
Softwares Downloads, Proxy, Freehosting, ....
#6
Posted 18 May 2008 - 04:12 PM
Simple but useful and powerful. Awesome!
#7
Posted 03 September 2008 - 05:57 AM
Hello. I find this function very simple and useful! Bravo!
#8
Posted 12 September 2008 - 09:56 AM
Pretty much the same thing I do, I just don't put it in a function.
#9
Posted 21 September 2008 - 10:54 PM
the second one is very simple
#10
Posted 11 November 2008 - 12:53 PM
thank you for the script.
#11
Posted 11 November 2008 - 03:22 PM
Thanks Jordan, but wouldn't the second one work also? It seems more simpler than the one Jordan posted.
All you have to do is in the header create a variable that will get the current time. Then in the footer get the time it finishes and take away the second one from the first one and print the answer.
I am at school, so how does yours work Jordan?
All you have to do is in the header create a variable that will get the current time. Then in the footer get the time it finishes and take away the second one from the first one and print the answer.
I am at school, so how does yours work Jordan?
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation
Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!
#12
Guest_Jordan_*
Posted 11 November 2008 - 05:36 PM
Guest_Jordan_*
I dunno the output of mine, it may have some different format requirements. I posted that in 2006, since then I just use the PEAR::Benchmark libraries.


Sign In
Create Account


Back to top










