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

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

yep/stopwatch
=============

Stopwatch

v1.0.0(10y ago)068BSD-3-ClausePHPPHP &gt;=5.6.0

Since Jan 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/YepFoundation/stopwatch)[ Packagist](https://packagist.org/packages/yep/stopwatch)[ Docs](https://github.com/YepFoundation/stopwatch)[ RSS](/packages/yep-stopwatch/feed)WikiDiscussions master Synced 2mo ago

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

[![Build Status](https://camo.githubusercontent.com/d362eaf34662a285a2f08abd10fedd14e1202b546da10aa4fe5d61542ee0c5b0/68747470733a2f2f7472617669732d63692e6f72672f596570466f756e646174696f6e2f73746f7077617463682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/YepFoundation/stopwatch)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4c41f164e45fd25cc1aa26518b1dcba7e3f1a2f337a35571686fafd6d1c910ca/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f596570466f756e646174696f6e2f73746f7077617463682f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/YepFoundation/stopwatch/?branch=master)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/5e5fadd1dafd3f761bedfe48a3ba3592fb138c5d8aa02ebc7002a8fb8bc84b23/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f596570466f756e646174696f6e2f73746f7077617463682f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/YepFoundation/stopwatch/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/1c7b324ad058e204b29fb11289f31ee3a4a09d22eb0d5ed40220690161b32b2f/68747470733a2f2f706f7365722e707567782e6f72672f7965702f73746f7077617463682f762f737461626c65)](https://packagist.org/packages/yep/stopwatch)[![Total Downloads](https://camo.githubusercontent.com/d081f947354edb50db902c827948527af3e54bd2ffdc856f966f5531026b0a7c/68747470733a2f2f706f7365722e707567782e6f72672f7965702f73746f7077617463682f646f776e6c6f616473)](https://packagist.org/packages/yep/stopwatch)[![License](https://camo.githubusercontent.com/4b70187482d660f6587b96872ccfcf475608cc4b1a70187df84699c0d786e2c8/68747470733a2f2f706f7365722e707567782e6f72672f7965702f73746f7077617463682f6c6963656e7365)](https://github.com/YepFoundation/stopwatch/blob/master/LICENSE.md)

Stopwatch ([docs](http://yepfoundation.github.io/stopwatch))
============================================================

[](#stopwatch-docs)

Packagist
---------

[](#packagist)

Stopwatch are available on [Packagist.org](https://packagist.org/packages/yep/stopwatch), just add the dependency to your composer.json.

```
{
  "require" : {
    "yep/stopwatch": "1.*"
  }
}
```

or run Composer command:

```
php composer.phar require yep/stopwatch
```

Usage
-----

[](#usage)

Stopwatch allows you to measure how long it takes to execute a certain parts of code.

You can use `start`, `stop` and `lap` like in real world.

```
