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

[log1x/acf-composer

Create fields, blocks, option pages, and widgets using ACF Builder and Sage 10

493760.2k13](/packages/log1x-acf-composer)[markrogoyski/ipv4-subnet-calculator

Network calculator for subnet mask and other classless (CIDR) network information.

177813.7k6](/packages/markrogoyski-ipv4-subnet-calculator)[b13/menus

Easy and fast menus for TYPO3 Frontends

58534.7k1](/packages/b13-menus)[hfig/mapi

Pure PHP library for reading and manipulating Microsoft Outlook .msg messages (MAPI documents)

40420.9k2](/packages/hfig-mapi)

PHPackages © 2026

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