PHP code example of decodelabs / kairos
1. Go to this page and download the library: Download decodelabs/kairos 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/ */
decodelabs / kairos example snippets
use DecodeLabs\Kairos\Timer;
$timer = new Timer();
sleep(1);
$elapsed = $timer->time;
sleep(1);
$total = $timer->stop();