PHP code example of jtm / timer

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

    

jtm / timer example snippets


$timer = new \JtM\Timer\Timer();
$timer->start();
//...
$timer->stop();
var_dump($timer->diffMemory(), $timer->diffTime());