triplei/timer
最新稳定版本:1.0.0
Composer 安装命令:
composer require triplei/timer
包简介
A simple code execution timing class
关键字:
README 文档
README
a simple timer class for php code performance testing
Example
use TripleI\Timer\Timer;
// start the timer
Timer::start();
/* some expensive code here */
// let's see how long it took to execute
Timer::tick('did some fancy stuff');
/* more expensive code here */
// let's see how long it was since the timer initially started
Timer::tick('did more fancy stuff');
// more code to time here. This time we will output a relative timestamp since the last ::tick() as well
Timer::tick('relative timer', true);
// output the end timing
Timer::done();
sample output
0.27108597755432 - did some fancy stuff
0.47066617012024 - did more fancy stuff
0.84685397148132 - (0.37618780136108) relative timer
0.84687614440918 - Done
统计信息
- 总下载量: 92
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-15