A small tool to measure operations execution time.
astatroth/laravel-timer is a Laravel package for a small tool to measure operations execution time..
It currently has 8 GitHub stars and 27.128 downloads on Packagist.
Install it with composer require astatroth/laravel-timer.
Discover more Laravel packages by astatroth
or browse all Laravel packages to compare alternatives.
Last updated
A small tool to measure operations execution time.
composer require "astatroth/laravel-timer":"dev-master"
Add the service provider ...
Astatroth\LaravelTimer\LaravelTimerServiceProvider::class,
or if you use Lumen
Astatroth\LaravelTimer\LumenTimerServiceProvider::class,
... and facade:
'Timer' => Astatroth\LaravelTimer\Timer::class,
Just start the Timer with
Timer::timerStart('timer-name');
If you start and stop the same timer multiple times, the measured intervals will be accumulated.
Reading specified timer current time:
Timer::timerRead('timer-name);
Stop the timer:
Timer::timerStop('timer-name');
Have fun! ;)