microtime/microtime

A simple way to get elapsed time between two points.

2.0.0 2016-08-29 19:27 UTC

This package is auto-updated.

Last update: 2024-06-09 18:03:30 UTC


README

Installing

  composer require microtime/microtime

Usage

    // Instantiate the class
    $microtime = new \Microtime\Microtime();

    // code...
    sleep(1);

    // And then, get time elapsed
    echo $microtime->elapsed()->round();