PHP code example of josantonius / loadtime

1. Go to this page and download the library: Download josantonius/loadtime 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/ */

    

josantonius / loadtime example snippets


LoadTime::start();

LoadTime::end();

LoadTime::isActive();



use Josantonius\LoadTime\LoadTime;



use Josantonius\LoadTime\LoadTime;


Josantonius\LoadTime\LoadTime;

LoadTime::start();

for ($i=0; $i < 100000; $i++) { 
    // print_r($i . ' ');
}

print_r('Script executed in: ' . LoadTime::end() . ' seconds.'); 

/* Script executed in: 0.0012 seconds. */