Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/desarrolla2/timer
This script works as simple timer control to your app
https://github.com/desarrolla2/timer
Last synced: about 1 month ago
JSON representation
This script works as simple timer control to your app
- Host: GitHub
- URL: https://github.com/desarrolla2/timer
- Owner: desarrolla2
- License: mit
- Created: 2012-10-01T11:26:34.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-04-28T08:32:53.000Z (over 7 years ago)
- Last Synced: 2024-11-02T16:24:19.480Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Timer
This script works as simple timer control to your app
[![Build Status](https://secure.travis-ci.org/desarrolla2/Timer.png)](http://travis-ci.org/desarrolla2/Timer)
[![Latest Stable Version](https://poser.pugx.org/desarrolla2/timer/v/stable.png)](https://packagist.org/packages/desarrolla2/timer) [![Total Downloads](https://poser.pugx.org/desarrolla2/timer/downloads.png)](https://packagist.org/packages/desarrolla2/timer)
## Installation
### With Composer
It is best installed it through [packagist](http://packagist.org/packages/desarrolla2/timer)
by including `desarrolla2/timer` in your project composer.json require:``` json
"require": {
// ...
"desarrolla2/timer": "*"
}
```### 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
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');
```
## Formatting
// ..
## Contact
You can contact with me on [@desarrolla2](https://twitter.com/desarrolla2).