dndvl / php-helper-runtime
Installs: 82
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/dndvl/php-helper-runtime
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2025-10-03 13:42:44 UTC
README
composer require dndvl/php-helper-runtime
Use
<?php
use \Dndvl\HelperRuntime\Runtime;
Runtime::start();
Runtime::start('name1');
$result = Runtime::resultAll();
Methods
Runtime::start($name = 'default'')
- start / return timer
Runtime::stop($name = 'default'')
- stop timer and get result
Runtime::result($name = 'default')
- get result
Runtime::resultAll()
- get all results as array
Todo
resultAll
return all time intervals and timer status