PHPackages                             djuricmilos/stopwatch - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. djuricmilos/stopwatch

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

djuricmilos/stopwatch
=====================

Elapsed time measurement

v2.0.1(5y ago)27.8k—0%MITPHPPHP ^7.3CI failing

Since Apr 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/djuricmilos/stopwatch)[ Packagist](https://packagist.org/packages/djuricmilos/stopwatch)[ RSS](/packages/djuricmilos-stopwatch/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Stopwatch
=========

[](#stopwatch)

[![Build Status](https://camo.githubusercontent.com/39e556a2b3ee5bd6e97640ab856b575b684c3703bc6c68c3d2538b7d76079883/68747470733a2f2f6170692e7472617669732d63692e636f6d2f646a757269636d696c6f732f73746f7077617463682e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/djuricmilos/stopwatch)[![Code Quality](https://camo.githubusercontent.com/db9d25fd96e9a58062ab662ae860059850f89e9f3bb416c74b28fe31b79032e4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f646a757269636d696c6f732f73746f7077617463682e737667)](https://scrutinizer-ci.com/g/djuricmilos/stopwatch)[![Code Coverage](https://camo.githubusercontent.com/292b80cf31d2428bfbb9f7be8b8a0b4ee8b453b7d1f14d08b3d2309f65aadbc6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f646a757269636d696c6f732f73746f7077617463682e737667)](https://scrutinizer-ci.com/g/djuricmilos/stopwatch/code-structure)[![Latest Version](https://camo.githubusercontent.com/63ee759de74486c26e9c8e433db6a1d0c62f6c92ea48ed3d25084dc7084719cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646a757269636d696c6f732f73746f7077617463682e737667)](https://packagist.org/packages/djuricmilos/stopwatch)[![PDS Skeleton](https://camo.githubusercontent.com/a8ce1f2a7b71f101b18fc0393ba5bf89b7a5b1f9d08a31b658ca0eab0064c0f6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7064732d736b656c65746f6e2d626c75652e737667)](https://github.com/php-pds/skeleton)

Installation
------------

[](#installation)

The preferred method of installation is via [Composer](http://getcomposer.org/). Run the following command to install the latest version of a package and add it to your project's `composer.json`:

```
composer require djuricmilos/stopwatch
```

Usage
-----

[](#usage)

```
use Laganica\Stopwatch\Stopwatch;

$stopwatch = Stopwatch::createNew();
$stopwatch->start();
$stopwatch->getElapsedMilliseconds();
$stopwatch->stop();
```

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

Released under MIT License - see the [License File](LICENSE) for details.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~620 days

Total

3

Last Release

2126d ago

Major Versions

v1.0.0 → v2.0.02020-01-29

PHP version history (2 changes)v1.0.0PHP ^7.0

v2.0.0PHP ^7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/48f45a6eec23fb4b9be8399ea4359da8763947c2d3f0a6a44454e79719783829?d=identicon)[djuricmilos](/maintainers/djuricmilos)

---

Top Contributors

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

---

Tags

timetimerstopwatch

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/clock

Decouples applications from the system clock

436205.7M391](/packages/symfony-clock)[brick/date-time

Date and time library

3663.8M108](/packages/brick-date-time)[ayesh/php-timer

High-resolution and monotonic stop-watch for all your needs. Supports timer start, pause, resume, stop, read, and minimal conversion.

25235.3k13](/packages/ayesh-php-timer)[icecave/chrono

A date &amp; time library that is decoupled from the system clock.

56195.7k7](/packages/icecave-chrono)[dragon-code/benchmark

Simple comparison of code execution speed between different options

12037.9k6](/packages/dragon-code-benchmark)

PHPackages © 2026

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