Skip to content

A simple way to get elapsed time between two points.

Notifications You must be signed in to change notification settings

otaavioo/microtime

Repository files navigation

Microtime

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();

About

A simple way to get elapsed time between two points.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages