This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony
Fabien Potencier 0c7df5898f feature #12666 [Hackday][Stopwatch] added __toString on StopwatchEvent (damienalexandre)
This PR was merged into the 2.7 branch.

Discussion
----------

[Hackday][Stopwatch] added __toString on StopwatchEvent

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #12152
| License       | MIT
| Doc PR        | no

This allow to just print the events in a log or something.

```php
$stopwatch = new Stopwatch();
$event = $stopwatch->start('foo', 'cat');

echo $event; // cat: 0.00 MiB - 0 ms
```

Commits
-------

0b88a23 [Stopwatch] added __toString on StopwatchEvent
2014-11-29 14:10:59 +01:00
..
Bridge Merge branch '2.6' into 2.7 2014-11-28 11:00:56 +01:00
Bundle add deprecation log (#12618) 2014-11-29 11:52:21 +01:00
Component feature #12666 [Hackday][Stopwatch] added __toString on StopwatchEvent (damienalexandre) 2014-11-29 14:10:59 +01:00