Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how check the time of operation in laravel

$timeStart = microtime(true);

App::finish(function() use ($timeStart) {
    $diff = microtime(true) - $timeStart;
    $sec = intval($diff);
    $micro = $diff - $sec;
    Log::debug(Request::getMethod() . "[" . Request::url() . "] Time: " . round($micro * 1000, 4) . " ms");
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #time #operation #laravel
ADD COMMENT
Topic
Name
8+7 =