laravel-timer
, (*1)
A small tool to measure operations execution time., (*2)
Installation
composer require "astatroth/laravel-timer":"dev-master"
Add the service provider ..., (*3)
Astatroth\LaravelTimer\LaravelTimerServiceProvider::class,
or if you use Lumen, (*4)
Astatroth\LaravelTimer\LumenTimerServiceProvider::class,
... and facade:, (*5)
'Timer' => Astatroth\LaravelTimer\Timer::class,
Usage
Just start the Timer with, (*6)
Timer::timerStart('timer-name');
If you start and stop the same timer multiple times, the measured intervals will be accumulated., (*7)
Reading specified timer current time:, (*8)
Timer::timerRead('timer-name);
Stop the timer:, (*9)
Timer::timerStop('timer-name');
Have fun! ;), (*10)