PHP code example of jun3453 / prosp
1. Go to this page and download the library: Download jun3453/prosp library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jun3453 / prosp example snippets
for($i=0;$i<2;$i++) {
ProcessingSpeedMeasurement::startProcessing("foo");
/** Write foo processing */
for($j=0;$j<2;$j++) {
ProcessingSpeedMeasurement::startProcessing("bar");
/** Write bar processing */
ProcessingSpeedMeasurement::endProcessing("bar");
}
ProcessingSpeedMeasurement::endProcessing("foo");
}
$xslt
array(2) {
'processTimes' =>
array(2) {
[1] =>
double(0.43487548828125)
[2] =>
double(0.08082389831543)
}
'totalRounds' =>
int(2)
}
array(2) {
'bar' =>
array(2) {
'processTimes' =>
array(4) {
[1] =>
double(0.042915344238281)
[2] =>
double(0.25415420532227)
[3] =>
double(0.016927719116211)
[4] =>
double(0.016927719116211)
}
'totalRounds' =>
int(4)
}
'foo' =>
array(2) {
'processTimes' =>
array(2) {
[1] =>
double(0.43487548828125)
[2] =>
double(0.08082389831543)
}
'totalRounds' =>
int(2)
}
}
array(2) {
'bar' =>
array(2) {
[0] =>
array(2) {
'processTime' =>
double(0.042915344238281)
'round' =>
int(1)
}
[1] =>
array(2) {
'processTime' =>
double(0.25415420532227)
'round' =>
int(2)
}
}
'foo' =>
array(2) {
[0] =>
array(2) {
'processTime' =>
double(0.43487548828125)
'round' =>
int(1)
}
[1] =>
array(2) {
'processTime' =>
double(0.08082389831543)
'round' =>
int(2)
}
}
}