Lost Password?

  #1 (permalink)  
Old 08-10-2006, 08:08 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Age: 25
Posts: 4,529
Last Blog:
PHP: list()
Rep Power: 50
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default PHP: Execution Time Function

This php file has two functions to determine start time and finish time. Then displays total execution time in seconds.

Code:
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";
Attached Files To view attachments your post count must be 1 or greater. Your post count is 0 momentarily.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 05-11-2008, 06:26 AM
fgundomiel fgundomiel is offline
Newbie
 
Join Date: May 2008
Posts: 2
Rep Power: 0
fgundomiel is on a distinguished road
Default Re: PHP: Execution Time Function

Thanx for that script
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-11-2008, 04:51 PM
Jaan's Avatar   
Jaan Jaan is offline
Moderator
 
Join Date: Dec 2006
Location: Estonia
Age: 17
Posts: 433
Last Blog:
Wadio Media Layout Com...
Rep Power: 9
Jaan will become famous soon enoughJaan will become famous soon enough
Send a message via MSN to Jaan
Default Re: PHP: Execution Time Function

looking good.. thanks
__________________


Cheap & Professional Web Design | Need help? Send a PM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-12-2008, 02:51 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 3,019
Last Blog:
Piano Exam
Rep Power: 26
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: PHP: Execution Time Function

Are slog_time() and elog_time() predefined PHP functions, or did you define them yourself in the ZIP file?
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-18-2008, 01:48 PM
o0DarkEvil0o o0DarkEvil0o is offline
Newbie
 
Join Date: May 2008
Posts: 2
Rep Power: 0
o0DarkEvil0o is on a distinguished road
Default Re: PHP: Execution Time Function

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);
__________________
Http://boy.us.com/ Multi Utilities Sites
Softwares Downloads, Proxy, Freehosting, ....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 05-18-2008, 07:12 PM
DevilsCharm's Avatar   
DevilsCharm DevilsCharm is offline
Programming God
 
Join Date: Jul 2006
Posts: 875
Rep Power: 13
DevilsCharm is on a distinguished road
Default Re: PHP: Execution Time Function

Simple but useful and powerful. Awesome!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Introduction clookid PHP Tutorials 10 01-16-2007 07:17 AM
Execution Time smith PHP Forum 2 01-06-2007 03:46 PM
TUTORIAL: Save time using the PHP include Function <?php include Dan PHP Tutorials 5 01-01-2007 10:19 AM


All times are GMT -5. The time now is 09:05 PM.

Contest Stats

dargueta ........ 93.00000
John ........ 87.50000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads