ASPN ActiveState Programmer Network  
ActiveState, a division of Sophos
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups
Submit Recipe
My Recipes

All Recipes
All Cookbooks


View by Category

Title: Displaying Page Processsing Time
Submitter: imam ferianto (other recipes)
Last Updated: 2003/06/30
Version no: 1.0
Category:

 

2 stars 1 vote(s)


Description:

In addition for our page we can displaying information how much
some page processing spend time occurs by measure script time
running. principle is simple with substract time_ending with time_start

Source: Text Source

### begin page
## this must be write on 1st line before do anything
$_start_time=time();


### your codes begin here.......
##and here .................
##.... until your code ends



## on footer, when process is done we can calculate time with
$_time_spend=time()-$_start_time;

echo "This page needed $_time_spend second";

Discussion:



Add comment

No comments.



Highest rated recipes:

1. DB_eSession PHP class ...

2. main - python-like if ...

3. iPHP: Semi-interactive ...

4. tinySendMail

5. Microsoft Access ...

6. Single Linked List

7. PHP MySQL Search Class

8. Pass Javascript arrays ...

9. Microsoft Access ...

10. Password generation




Privacy Policy | Email Opt-out | Feedback | Syndication
© 2006 ActiveState Software Inc. All rights reserved.