Releases: naingaunglwin-dev/timetracker
Releases · naingaunglwin-dev/timetracker
version 1.1.0
ChangeLog
v1.1.0 - 2025-12-09
Added
- Implemented
__toString()method for theResultclass, allowing instances to be converted to strings (e.g."$result"now returns the calculated value). (PR #1) - Added new
stop()method to the timer, supporting stopping: (PR #2)- a specific timer by ID
- or the most recently started timer when no ID is provided.
- Added new
watch()static method to replacerun()for executing and timing callbacks. (PR #4) - Added new timer utility methods
isStarted(),isStopped(), andgetActiveTimers()inTimeTrackerto inspect active and completed timers. (PR #7) - Added new timer utility methods
lap(),getLaps(),pause(),resume(), andinspect()inTimeTracker. (PR #9)
Changed
- Replaced
ramsey/uuidwith native PHP functions (bin2hex(random_bytes(16))) for generating random IDs. (PR #3) - Removed the
ramsey/uuiddependency as it is no longer required. (PR #3) - Replaced
STATUS_*string constants with a dedicatedTimerStatusenum. (PR #5)
Fixed
- Prevent duplicate
stop()calls inwatch()by adding anisStopped()check in thefinallyblock. (RP #8)
Deprecated
Version 1.0.0
A lightweight time tracker for php