astatroth/laravel-timer
laravel-timer
A small tool to measure operations execution time.
Installation
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,
Usage
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! ;)
Related Packages
erirk/paypalpayment
laravel-paypalpayment is simple package help you process direct credit card paym...
0
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
612,604,198
9,704