Simple stopwatch for php.
Fund package maintenance!
Open Issues: 0
- php: >=8.1
- php-mock/php-mock-phpunit: >=2.6.1
- phpunit/phpunit: >=9.5.25
This package is auto-updated.
Last update: 2023-05-26 13:26:19 UTC
Basic/naive implementation of a stopwatch using
All non nanosecond representations are cast with (int), making them floor to the closest value. toString representation is currently depending on the time elapsed, and if passed 1 on a given unit, it will display that unit with reminder of the value as a decimal.
If you use this package and need exact times, use the
nanosecond value of the object.