Revision: 32492
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 26, 2010 23:19 by ZaiSL
Initial Code
//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 execute';
Initial URL
http://phpsnips.com/snippet.php?id=26
Initial Description
Initial Title
Calculate execution time
Initial Tags
Initial Language
PHP