PHP code example of hyqo / measure
1. Go to this page and download the library: Download hyqo/measure 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/ */
hyqo / measure example snippets
Measure::start('foo');
Measure::start('bar');
Measure::start('baz');
usleep(100);
echo Measure::stop('foo'); // 100.00 us
usleep(100);
echo Measure::stop('bar'); // 200.00 us
usleep(800);
echo Measure::stop('baz'); // 1.00 ms