Created
April 6, 2024 08:47
-
-
Save mehrshaddarzi/71d83064a18f5edaa1190aa45e4d3637 to your computer and use it in GitHub Desktop.
Get Period Execute Run Time Script PHP (microtime)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// place this before any script you want to calculate time | |
$time_start = microtime(true); | |
// Check Time Spend | |
$time_end = microtime(true); | |
$execution_time = ($time_end - $time_start); | |
// Echo Date | |
echo date("H:i:s",$endtime-$starttime); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment