ashterix/control-time
最新稳定版本:1.0.2
Composer 安装命令:
composer require ashterix/control-time
包简介
Time control of the script with the ability to check the intermediate points.
README 文档
README
Time control of the script with the ability to check the intermediate points.
How use?
INIT
At the beginning of your script, initiate control of time:
use Control\ControlTime; ControlTime::init(); ~~~~~ ##### ADD WAYPOINTS In the right places in your script, add waypoints with comments: ~~~~~~ php ControlTime::addWayPoint('Before connect to DB'); // your connect to DB ControlTime::addWayPoint('After connect to DB'); ~~~~~ ##### GET RESULTS At the end of your script, get results in the desired format: ~~~~~~ php $resultArray = ControlTime::getResults(ControlTime::RETURN_ARRAY); // or $resultJSON = ControlTime::getResults(ControlTime::RETURN_JSON); // or $resultHTML = ControlTime::getResults(ControlTime::RETURN_HTML); ~~~~~ ##### HTML demo: ~~~~~~ php echo $resultHTML; ~~~~~ 
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-22