PHPackages                             primus852/simple-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. primus852/simple-stopwatch

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

primus852/simple-stopwatch
==========================

Simple Stopwatch in PHP

1.0.1(6y ago)1117GPL-3.0-or-laterPHPPHP ^7.0

Since Oct 4Pushed 6y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

simple-stopwatch
================

[](#simple-stopwatch)

A simple Stopwatch utility for PHP

### Usage

[](#usage)

#### Start the Stopwatch

[](#start-the-stopwatch)

`$start = StopWatch::start();`

#### Default Output

[](#default-output)

```
$start = StopWatch::start();
sleep(3); // Sleep 3 seconds for testing
$end = Stopwatch::stop($start);
echo 'Elapsed: '.$end; //Elapsed: 0 hours, 0 minutes and 3 seconds

```

#### Specify Output format

[](#specify-output-format)

```
$start = StopWatch::start();
sleep(3); // Sleep 3 seconds for testing
$end = Stopwatch::stop($start, true, 's');
echo 'Elapsed Seconds: '.$end; //Elapsed Seconds: 3

```

#### Get current timestamp including microseconds

[](#get-current-timestamp-including-microseconds)

```
$current = StopWatch::current();
echo $current; //2018-10-04 10:37:30.271700

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

2

Last Release

2283d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/996106c8ad2b9fbc73ed7257cf44851023ed0c445351f69f5ae8c66bc406fd22?d=identicon)[primus852](/maintainers/primus852)

---

Top Contributors

[![primus852](https://avatars.githubusercontent.com/u/5185509?v=4)](https://github.com/primus852 "primus852 (3 commits)")

### Embed Badge

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

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

###  Alternatives

[ericpoe/haystack

Forget Haystack vs Needle order, the object IS the Haystack. Haystack is a library that allows for pipelining and immutable structures.

3729.4k](/packages/ericpoe-haystack)[rotexsoft/versatile-collections

A collection package that can be extended to implement things such as a Dependency Injection Container, RecordSet objects for housing database records, a bag of http cookies, or technically any collection of items that can be looped over and whose items can each be accessed using array-access syntax or object property syntax.

186.0k1](/packages/rotexsoft-versatile-collections)

PHPackages © 2026

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