php check how much time each instruction takes to complete
$start = microtime(true);
while (...) {
}
$time_elapsed_secs = microtime(true) - $start;
php check how much time each instruction takes to complete
$start = microtime(true);
while (...) {
}
$time_elapsed_secs = microtime(true) - $start;
php set time counters inside code meassure
<?php
//No need for microtime at the start of script.
// Use this at the end of your script, or around in the
// code where you need to take meassures.
$time = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
echo "Did stuff in $time seconds\n";
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us