Created
November 3, 2018 09:13
-
-
Save shzk/962f20f678623f631bba715a6bbdacf7 to your computer and use it in GitHub Desktop.
how to get script running time
This file contains hidden or 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
<?php | |
$start = microtime(true); | |
$sum = 0; | |
for ($i = 0; $i < 100000; $i++) $sum += $i; | |
echo "Время выполнения скрипта: ".(microtime(true) - $start); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment