PHP Classes

File: src/Task.php

Recommend this page to a friend!
  Packages of tomloprod   Time Warden   src/Task.php  
File: src/Task.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Time Warden
Measure PHP execution time and invoke callbacks
Author: By
Last change: ref: remove duration rounding for better precision
ref: clean up documentation and improve code readability
feat!: replace microtime with hrtime for better precision

BREAKING CHANGES:
- getStartTimestamp() and getEndTimestamp() now return int (nanoseconds) instead of float (seconds)
- setTestStartTimestamp() and setTestEndTimestamp() now accept int (nanoseconds) instead of float (seconds)
- Internal timestamp storage changed from float to int for nanosecond precision
feat(TimeWardenSummary): Summary in array or json format

To be able to obtain a summary of the actions recorded by TimeWarden, both in array and JSON format.
chore: code style to comply with lint
Date: 5 months ago
Size: 5,616 bytes

You need to be a registered user and login to get this file.

Login Immediately with your account on: