jitesoft/stopwatch

Simple stopwatch for php.

Maintainers

Package info

github.com/jitesoft/php-stopwatch

pkg:composer/jitesoft/stopwatch

Fund package maintenance!

jitesoft

Patreon

Open Collective

Statistics

Installs: 45

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

0.0.2 2022-09-25 19:29 UTC

This package is auto-updated.

Last update: 2026-02-26 19:51:20 UTC


README

Basic/naive implementation of a stopwatch using hrtime.

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.