class StopwatchPeriod
Represents an Period for an Event.
__construct(int|float $start, int|float $end, bool $morePrecision = false) | ||
int|float | getStartTime() Gets the relative time of the start of the period. | |
int|float | getEndTime() Gets the relative time of the end of the period. | |
int|float | getDuration() Gets the time spent in this period. | |
int | getMemory() Gets the memory usage. |
int|float | $start | The relative time of the start of the period (in milliseconds) |
int|float | $end | The relative time of the end of the period (in milliseconds) |
bool | $morePrecision | If true, time is stored as float to keep the original microsecond precision |
Gets the relative time of the start of the period.
int|float | The time (in milliseconds) |
Gets the relative time of the end of the period.
int|float | The time (in milliseconds) |
Gets the time spent in this period.
int|float | The period duration (in milliseconds) |
Gets the memory usage.
int | The memory usage (in bytes) |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Stopwatch/StopwatchPeriod.html