How to measure timing in Laravel using debugbar

If you want to measure the timing of some code in Laravel , you can use debugbar measure function



but if, for any reason, you can’t use debugbar, you can go back to pure php and use this code

 $start = microtime(true);
 $time_elapsed_secs = microtime(true) - $start;


Leave a Reply

Your email address will not be published. Required fields are marked *