php execute background script on server in microsecond code example
Example: php check how much time each instruction takes to complete
$start = microtime(true);
while (...) {
}
$time_elapsed_secs = microtime(true) - $start;
$start = microtime(true);
while (...) {
}
$time_elapsed_secs = microtime(true) - $start;