PHP code example of imkingdavid / load-timer
1. Go to this page and download the library: Download imkingdavid/load-timer 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/ */
imkingdavid / load-timer example snippets
use imkingdavid\LoadTimer;
// If you are using Composer, you should r.php');
// Next, instantiate the class
$timer = new LoadTimer();
$timer = new LoadTimer(true);
$timer->start();
// Important code section:
$timer->lap('Before execute');
$script->execute();
$timer->lap('After execute');
$timer->end();
$load_time = $timer->end(true, 'Page loaded in %f seconds.');