Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to check page loading time in php

$startTime = array_sum(explode(" ",microtime()));
error_log("Started time=======".$startTime);


echo "=======Your Code=======";
echo "=======Your Code=======";
echo "=======Your Code=======";
echo "=======Your Code=======";
echo "=======Your Code=======";


$endTime = array_sum(explode(" ",microtime()));
error_log("Started time=======".$endTime);

$timeTaken = round(($endTime - $startTime),2);

error_log("Page loaded in $timeTaken seconds");
Comment

PREVIOUS NEXT
Code Example
Php :: laravel get list of files in directory 
Php :: laravel collection forPage 
Php :: laravel blade multiple can 
Php :: php current page 
Php :: php return more than one value 
Php :: 0 
Php :: Update Custom Cart Count (or any HTML) after AJAX Add to Cart in WooCommerce 
Php :: simple bindings laravel 
Php :: Laravel unique Validation with multiple input value 
Php :: Add current year on WordPress using Shortcode 
Php :: livewire check no errors 
Php :: php test questions 
Php :: laravel collection nth method 
Php :: php print fetch 
Php :: laravel query builder delete all 
Php :: true not true acf 
Php :: laravel make model 
Php :: phph call functions from other .php file 
Php :: remove field from object php 
Php :: add filter in wordpress 
Php :: php function use 
Php :: Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, string given in 
Php :: laravel execute command arguments 
Php :: how to update a table based on three columns laravel 
Php :: publish spatie/permission 
Php :: php variables examples 
Php :: displaying dates using php code 
Php :: how to write php in script file 
Php :: Laravel storage:link not working 
Php :: laravel.com relationship 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =