PHPackages                             microtime/microtime - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. microtime/microtime

ActiveLibrary

microtime/microtime
===================

A simple way to get elapsed time between two points.

2.0.0(9y ago)343.8k↓16.7%MITPHP

Since Aug 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/otaavioo/microtime)[ Packagist](https://packagist.org/packages/microtime/microtime)[ RSS](/packages/microtime-microtime/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Microtime
---------

[](#microtime)

#### Installing

[](#installing)

 `composer require microtime/microtime`

#### Usage

[](#usage)

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

    // code...
    sleep(1);

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

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

2

Last Release

3549d ago

Major Versions

1.0.0 → 2.0.02016-08-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/e158cf21a883707e6587b76fa750d054ca7f0258aa582a537380f452122ed225?d=identicon)[otaavioo](/maintainers/otaavioo)

---

Top Contributors

[![otaavioo](https://avatars.githubusercontent.com/u/5620565?v=4)](https://github.com/otaavioo "otaavioo (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/microtime-microtime/health.svg)

```
[![Health](https://phpackages.com/badges/microtime-microtime/health.svg)](https://phpackages.com/packages/microtime-microtime)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
