eleme / timer
PHP timer library
Installs: 4 026
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 3
Requires
- php: >=5.3.3
Requires (Dev)
- phpunit/phpunit: ~4.0
- silex/silex: ~1.1
This package is not auto-updated.
Last update: 2024-12-17 03:58:11 UTC
README
thrift service provider for silex framework.
Install With Composer:
"require": { "eleme/timer": "~0.1" }
Example:
<?php use Eleme\Timer\Collection; require __DIR__.'/../vendor/autoload.php'; $collection = new Collection('namespace'); $collection->start('test'); usleep(500000); $collection->stop('test'); $collection->start('test'); usleep(1000000); $collection->stop('test'); $collection->start('fast'); $collection->stop('fast'); foreach ($collection as $name => $timer) { echo $name, "\n"; foreach ($timer->delta() as $value) { echo $value, "\n"; } }