Skip to content

jfretin/laravel-timer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

laravel-timer

Total Downloads

A small tool to measure operations execution time.

#Installation

composer require "astatroth/laravel-timer":"dev-master"

Add the service provider ...

Astatroth\LaravelTimer\LaravelTimerServiceProvider::class,

... and facade:

'Timer' => Astatroth\LaravelTimer\Timer::class,

Usage

Just start the 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! ;)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%