定制 ashterix/control-time 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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;
~~~~~
![main window](https://github.com/Ashterix/control-time/blob/master/demo.jpg)

统计信息

  • 总下载量: 34
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-22