| Package Data | |
|---|---|
| Maintainer Username: | Astatroth |
| Maintainer Contact: | astatroth@gmail.com (Astatroth) |
| Package Create Date: | 2016-09-30 |
| Package Last Update: | 2018-08-13 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:23:59 |
| Package Statistics | |
|---|---|
| Total Downloads: | 23,467 |
| Monthly Downloads: | 184 |
| Daily Downloads: | 2 |
| Total Stars: | 8 |
| Total Watchers: | 2 |
| Total Forks: | 5 |
| Total Open Issues: | 1 |
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! ;)