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-31 13:59:06 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
resultAllreturn all time intervals and timer status