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

Posted by Chris Boget on 03/15/05 17:08

> Hi, i wanna ask if anybody knows how to calculate the total process
> time of a script. 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..

// At the very beginning of the script
$startTime = date( 'U' );

// At the very end of the script
$endTime = date( 'U' );

echo 'Total processing time: ' . ( $endTime - $startTime ) . ' second(s)';

thnx,
Chris

 

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

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