Reply to How to now the script execution time?

Your name:

Reply:


Posted by Hermann on 11/28/07 18:32

To explain what I need to do I'm gonna cite an excerpt of
set_time_limit's php documentation:

"The set_time_limit() function and the configuration directive
max_execution_time only affect the execution time of the script
itself. Any time spent on activity that happens outside the execution
of the script such as system calls using system(), stream operations,
database queries, etc. is not included when determining the maximum
time that the script has been running."

So, subtracting the script's start-time from the script's end-time
wont give you the actual execution time but the total time spent on
doing everything the script did.

I need a way to know the real execution time so I can know how much
time is left for the script to execute. And depending on that, to make
decisions about whether to continue with the current task the script
is doing or to end the script if there is not enough time left.


Any idea would be apreciated.
Thanks.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация