Skip to content

Instantly share code, notes, and snippets.

@shzk
Created November 3, 2018 09:13
Show Gist options
  • Save shzk/962f20f678623f631bba715a6bbdacf7 to your computer and use it in GitHub Desktop.
Save shzk/962f20f678623f631bba715a6bbdacf7 to your computer and use it in GitHub Desktop.
how to get script running time
<?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