cxj/php-interval-timers
Composer 安装命令:
composer require cxj/php-interval-timers
包简介
Manage elapsed one or more elapsed time timers
README 文档
README
A class to manage one or more elapsed-time timers, for such things as performance metrics.
Installation and Autoloading
This package is installable and PSR-4 autoloadable via Composer as cxj/php-interval-timers.
Alternatively, download a release,
or clone this repository, then map the
Cxj\ namespace to the package src/ directory.
Dependencies
This package requires PHP 5.1 or later. We recommend using the latest available version of PHP as a matter of principle.
Quality
Example Usage
<?php include "vendor/autoload.php"; $timer = new Cxj\Timers; $name = "sample timer"; $timer->start($name); usleep(1000); $r1 = $timer->read($name); echo "$r1 seconds have passed since timer was started" . PHP_EOL;
统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-10