Logo
Script Execution Time
Online Now: 2
Snippet Code
This basic snippet will calculate how many seconds it to a script to start and then end.
<?php
//Create a variable for start time
$time_start microtime(true);

// Place your PHP/HTML/JavaScript/CSS/Etc. Here

//Create a variable for end time
$time_end microtime(true);
//Subtract the two times to get seconds
$time $time_end $time_start;

echo 
'Script took '.$time.' seconds to exicute';
?>
 
Snippet Comments

Add Your Comment

Iphones for Cash
2011-06-29 11:46:46
I eventually try to hunt down some pre-developed, free classes scripts that will save on precious development time. Below is a listing of what are generally perceived to be good PHP class libraries. Thanks for sharing the information. Regards, Jack
office 2010
2011-06-08 02:47:05
i need too. thank you for your sharing.
rowing machines
2011-03-02 05:22:50
Thanks for the snip, it's very simple yet very necessary for coding.
hazemeil
2011-02-24 11:01:19
i have encounter a problem like this thanks for your tutorial i have enjoy it a lot. hazemeil
Kai
2010-11-23 14:12:33
exicute? ;)
php scripts
2010-09-14 00:33:24
i need to say. i need this script. thank you buddy.

Add Your Comment

 
Snippet Tools
Rate this Snippet:

Rate the difficulty level:

Request Snippet Update


Suggested Difficulty Level: Intermediate
Current Score: 2.88
Total votes: 237
Total Views: 6608

Other top snippets by admin:

1. JPEG to ASCII Converter
2. Add (th, st, nd, rd, th) to the end of a number
3. Dynamic Page Content From Links
4. AJAX Quickie
5. Simple Image CAPTCHA

Search
Search for:







User Panel

User name:

Password:

Register And Post Your Own Snippets

New Snippets

1.  Shorten text and (4 of 1)

2.  file-based simple guest (0 of 0)

3.  adding an entry (0 of 0)

4.  integer to currency (1.33 of 3)

5.  Aggregate IP addresses (0 of 0)

6.  file handling (0 of 0)

7.  testing system with (0 of 0)

8.  Make an php (1 of 1)

9.  allow download in (5 of 1)

10.  redirect in 3 (0 of 0)

11.  live clock with (0 of 0)

12.  visit counter (3.5 of 2)

13.  contact form with (4 of 1)

14.  show a specific (0 of 0)

15.  The & sign (0 of 0)

16.  static variable in (0 of 0)

17.  multiplication table with (0 of 0)

18.  function with multiplicationt (0 of 0)

19.  php generated menu (0 of 0)

20.  drawing a table (0 of 0)

21.  embedded array (one (0 of 0)

22.  checks the week (0 of 0)

23.  put links on (4.5 of 2)

24.  Directory Image Gallery (0 of 0)

25.  TOS (4 of 1)

Home | Forum | Free PHP Web Hosting | Contact | Terms & Conditions |  
Donate
PHPSnips.com - ©2012 Amethyst Creative