You are here: Re: [PHP] Re: How can i calculate total process time? « PHP « IT news, forums, messages
Re: [PHP] Re: How can i calculate total process time?

Posted by Richard Lynch on 03/08/05 20:52

M. Sokolewicz wrote:
> JoShQuNe wrote:
>> Hi, i wanna ask if anybody knows how to calculate the total process
>> time. I guess there exists a
>> function to perform but i dont know which one it is. I mean if u c any
>> PHP Nuke site, it says this
>> page is produced in .... seconds. I made some codes it calculates but i
>> dont believe that it is
>> equal to total process time.. Thanx..
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam? Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
> fetch the microtime() at the top of the script, and at the bottom of the
> script you fetch it again. Subtract the first from the later, and you're
> left with the time it took. Then change it to a human-readable form, and
> you're done. You can't get closer without hacking the ZE

You need to convert it to human-readable (or at least to
machine-subtractable) BEFORE you substract them.

http://php.net/microtime explains why.

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this 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

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