PHP code example of navarr / precise-clocks

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

    

navarr / precise-clocks example snippets


use Navarr\PreciseClock\MinutePrecisionClock;

$clock = new MinutePrecisionClock();
$a = $clock->now();
$b = $clock->now();

spl_object_id($a) === spl_object_id($b); // true