PHPackages                             alex-heifetz/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. alex-heifetz/stopwatch

ActiveLibrary

alex-heifetz/stopwatch
======================

PHP stopwatch

1.0.0(2y ago)013Apache-2.0PHPPHP &gt;=7.4

Since Mar 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/alex-heifetz/stopwatch)[ Packagist](https://packagist.org/packages/alex-heifetz/stopwatch)[ RSS](/packages/alex-heifetz-stopwatch/feed)WikiDiscussions main Synced today

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

Stopwatch – Class for checking delays during code execution
===========================================================

[](#stopwatch--class-for-checking-delays-during-code-execution)

[![GitHub Release](https://camo.githubusercontent.com/36337b54662a865ea6df203d685e1ee5dd78f7fbf25005e60cf6a0df3b17db9f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f616c65782d6865696665747a2f73746f707761746368)](https://camo.githubusercontent.com/36337b54662a865ea6df203d685e1ee5dd78f7fbf25005e60cf6a0df3b17db9f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f616c65782d6865696665747a2f73746f707761746368)[![GitHub Downloads (all assets, all releases)](https://camo.githubusercontent.com/6a4589eb75fe890e993ed18543a0bae25db872b8cefe8ca64e51abcfafabc020/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c65782d6865696665747a2f73746f707761746368)](https://camo.githubusercontent.com/6a4589eb75fe890e993ed18543a0bae25db872b8cefe8ca64e51abcfafabc020/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c65782d6865696665747a2f73746f707761746368)[![GitHub License](https://camo.githubusercontent.com/b813f819373660f7d222147900d526184da4b5bc9ba9e7c2e29cc1359fda67ae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616c65782d6865696665747a2f73746f707761746368)](https://camo.githubusercontent.com/b813f819373660f7d222147900d526184da4b5bc9ba9e7c2e29cc1359fda67ae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616c65782d6865696665747a2f73746f707761746368)[![Packagist Dependency Version](https://camo.githubusercontent.com/a433312fab761dbd5b4a915893dd0abf321ec51001798b82d9c285c1ce749933/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f616c65782d6865696665747a2f73746f7077617463682f706870)](https://camo.githubusercontent.com/a433312fab761dbd5b4a915893dd0abf321ec51001798b82d9c285c1ce749933/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f616c65782d6865696665747a2f73746f7077617463682f706870)

Why you might need this
-----------------------

[](#why-you-might-need-this)

If you don’t want to use complex tools for code profiling, but just need to find a place that slows down the execution of all code.

Installation &amp; loading
--------------------------

[](#installation--loading)

Just add this line to your `composer.json` file:

```
"alex-heifetz/stopwatch": "^1.0"
```

or run

```
composer require seraph90/stopwatch
```

A Simple Example
----------------

[](#a-simple-example)

```
