eleme/timer
Composer 安装命令:
composer require eleme/timer
包简介
PHP timer library
README 文档
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"; } }
统计信息
- 总下载量: 4.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-06-24