Download the PHP package ashterix/control-time without Composer
On this page you can find all versions of the php package ashterix/control-time. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ashterix/control-time
More information about ashterix/control-time
Files in ashterix/control-time
Download ashterix/control-time
More information about ashterix/control-time
Files in ashterix/control-time
Vendor ashterix
Package control-time
Short Description Time control of the script with the ability to check the intermediate points.
License MIT
Package control-time
Short Description Time control of the script with the ability to check the intermediate points.
License MIT
Please rate this library. Is it a good library?
Informations about the package control-time
Control Time
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:
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:
$resultArray = ControlTime::getResults(ControlTime::RETURN_ARRAY);
// or
$resultJSON = ControlTime::getResults(ControlTime::RETURN_JSON);
// or
$resultHTML = ControlTime::getResults(ControlTime::RETURN_HTML);
HTML demo:
echo $resultHTML;
All versions of control-time with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package ashterix/control-time contains the following files
Loading the files please wait ....