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

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

mvan/stopwatch
==============

Stop Watch for measuring running time of the script

v1.1(5y ago)029MITPHPPHP &gt;=7.0.0

Since Apr 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/martinvancura/StopWatch)[ Packagist](https://packagist.org/packages/mvan/stopwatch)[ RSS](/packages/mvan-stopwatch/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependenciesVersions (3)Used By (0)

### StopWatch - measures time inside the scripts

[](#stopwatch---measures-time-inside-the-scripts)

This library is a super simple to tool for measuring time between two points in the script.

Setup
-----

[](#setup)

Add the library to your `composer.json` file in your project:

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

Use [composer](http://getcomposer.org) to install the library:

```
$ php composer.phar install
```

Composer will install CLItoris inside your vendor folder. Then you can add the following to your .php files to use the library with Autoloading.

```
require_once __DIR__ . '/vendor/autoload.php';
```

Alternatively, use composer on the command line to require and install CLItoris:

```
$ php composer.phar require mvan/stopwatch:1.*

```

### Minimum Requirements

[](#minimum-requirements)

- PHP 7

Usage
-----

[](#usage)

```
