PHPackages                             perf/timing - 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. perf/timing

Abandoned → [jmf/time](/?search=jmf%2Ftime)Library[Utility &amp; Helpers](/categories/utility)

perf/timing
===========

Allows to retrieve and measure time.

2.0.0(5y ago)13482MITPHPPHP &gt;=7.4

Since May 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jmfeurprier/perf-timing)[ Packagist](https://packagist.org/packages/perf/timing)[ RSS](/packages/perf-timing/feed)WikiDiscussions 2.0 Synced 1mo ago

READMEChangelogDependencies (4)Versions (5)Used By (2)

perf timing
===========

[](#perf-timing)

Timing package.

Installation &amp; Requirements
-------------------------------

[](#installation--requirements)

Install with [Composer](http://getcomposer.org):

```
composer require perf/timing
```

Usage
-----

[](#usage)

### Clock

[](#clock)

`Clock` allows to retrieve current time and date.

Injecting it in your application will allow to ease the testing of time-related operations (mocking its `ClockInterface` interface and making its return values predictable).

```
