library timer
Provide Timer funcionality
desarrolla2/timer
Provide Timer funcionality
- Friday, April 28, 2017
- by desarrolla2
- Repository
- 2 Watchers
- 2 Stars
- 2,510 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 5 Versions
- 8 % Grown
Timer
This script works as simple timer control to your app, (*1)
, (*2)
, (*3)
Installation
With Composer
It is best installed it through packagist
by including desarrolla2/timer
in your project composer.json require:, (*4)
``` json
"require": {
// ...
"desarrolla2/timer": "*"
}, (*5)
### Without Composer
You can also download it from [Github] (https://github.com/desarrolla2/Timer), but no autoloader is provided so
you'll need to register it with your own PSR-4 compatible autoloader.
## Usage
``` php
<?php
require __DIR__ . '/../vendor/autoload.php';
use Desarrolla2\Timer\Timer;
$timer = new Timer();
$timer->mark('Starting a mark previous to operations');
foreach ($aLotOfOperations as $operation) {
$timer->mark('Start operation '.$operation->name);
$operation->doSomething();
$timer->mark('End operation '.$operation->name);
}
$timer->mark('Ended a mark previous to operations');
// .., (*6)
You can contact with me on @desarrolla2., (*7)
dev-master
9999999-dev
Provide Timer funcionality
Sources
Download
MIT
The Requires
The Development Requires
timer
0.2.0
0.2.0.0
Provide Timer funcionality
Sources
Download
MIT
The Requires
The Development Requires
timer
0.1.1
0.1.1.0
Provide Timer funcionality
Sources
Download
MIT
The Requires
The Development Requires
timer
0.1.0
0.1.0.0
Provide Timer funcionality
Sources
Download
MIT
The Requires
The Development Requires
timer