Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php time a script

//place this before any script you want to calculate time
$time_start = microtime(true); 

//sample script
for($i=0; $i<1000; $i++){
 //do anything
}

$time_end = microtime(true);
$execution_time = ($time_end - $time_start);
echo '<b>Total Execution Time:</b> '.($execution_time*1000).'Milliseconds';
Comment

PREVIOUS NEXT
Code Example
Php :: autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated. laravel 
Php :: numbric validate laravel 
Php :: php preg_match email validation code 
Php :: get the today data laravel 
Php :: use of segment in laravel 8 
Php :: storage image not showing in laravel 
Php :: How to check even or odd number in php 
Php :: php contruct parent 
Php :: get id user login laravel 
Php :: zsh: command not found: laravel 
Php :: laravel route group middleware prefix 
Php :: your requirements could not be resolved to an installable set of packages. composer 
Php :: php loop through start and end date 
Php :: Call to undefined function AppModelsstr_slug() 
Php :: php strict-origin-when-cross-origin 
Php :: php make query string from array 
Php :: php random string generator 
Php :: php iterate folder 
Php :: mac use php@7.4 
Php :: php stdclass to array 
Php :: laravel favicon 
Php :: php remove quotes 
Php :: get the list of php versions installed 
Php :: get current term id 
Php :: php exception message 
Php :: php remove nbsp from string 
Php :: string to uppercase laravel 
Php :: print session in laravel 
Php :: laravel validation types for float 
Php :: redirect in codeigniter 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =