dndvl / php-helper-runtime
dev-master / 1.0.x-dev
2019-01-16 06:40 UTC
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2024-12-13 09:51:04 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