2017 © Pedro Peláez
 

library timer

Measure execution time of your code

image

edbizarro/timer

Measure execution time of your code

  • Thursday, June 21, 2018
  • by edbizarro
  • Repository
  • 1 Watchers
  • 3 Stars
  • 2,716 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

, (*1)

Timer - measure execution time of your code, (*2)


Here are a few examples on how you can use the package:, (*3)

use Edbizarro\Timer\Timer;

$timer = Timer::start('timer01');
sleep(2);
$result = $timer->stop();

print_r($result);

// array:7 [                                                                                                                                                                                                
//   "start" => 1529506852.084                                                                                                                                                                              
//   "end" => 1529506854.0855                                                                                                                                                                               
//   "duration" => 2.0015239715576                                                                                                                                                                          
//   "milliseconds" => 2001.5239715576                                                                                                                                                                      
//   "seconds" => 2                                                                                                                                                                                         
//   "minutes" => 0                                                                                                                                                                                         
//   "hours" => 0                                                                                                                                                                                           
// ]    

Installation

You can install the package via composer:, (*4)

bash composer require edbizarro/timer, (*5)


forthebadge, (*6)

The Versions

21/06 2018

dev-master

9999999-dev

Measure execution time of your code

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

The Development Requires

20/06 2018

v0.1.1

0.1.1.0

Measure execution time of your code

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

The Development Requires

18/06 2018

v0.1

0.1.0.0

Measure execution time of your code

  Sources   Download

MIT

The Requires

 

The Development Requires