Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jitesoft/php-stopwatch
Basic/naive implementation of a stopwatch using `hrtime`.
https://github.com/jitesoft/php-stopwatch
hacktoberfest php php81 stopwatch
Last synced: 5 days ago
JSON representation
Basic/naive implementation of a stopwatch using `hrtime`.
- Host: GitHub
- URL: https://github.com/jitesoft/php-stopwatch
- Owner: jitesoft
- License: mit
- Created: 2022-09-25T15:17:39.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-26T11:45:23.000Z (about 2 years ago)
- Last Synced: 2024-05-03T04:47:44.938Z (7 months ago)
- Topics: hacktoberfest, php, php81, stopwatch
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stopwatch
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.