2017 © Pedro Peláez
 

library timer

A simple PHP timer that allows to benchamrk the code

image

kanel/timer

A simple PHP timer that allows to benchamrk the code

  • Wednesday, April 5, 2017
  • by elkaadka
  • Repository
  • 0 Watchers
  • 0 Stars
  • 94 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

build, (*1)

A simple Timer to benchmark functions or code execution duration, (*2)

How it works :

  • Start the timer Timer::start();
  • Mark a place as a lap (the timer will continue counting time after returning the difference between the start and this lap), (*3)

       $duration = Timer::lap();
    

    where $duration is in milliseconds, (*4)

  • If you want the duration between this lap and the last one, send this constant as a parameter:, (*5)

       $duration = Timer::lap(Timer::FROM_LAST_LAP);
    
  • To stop the time and get the duration from the beginning (the start) $duration = Timer::stop();
  • To stop the time and get the duration from the last lap $duration = Timer::stop(Timer::FROM_LAST_LAP);

The Versions

05/04 2017

dev-master

9999999-dev

A simple PHP timer that allows to benchamrk the code

  Sources   Download

The Requires

  • php >=7.0

 

The Development Requires

by Adil El Kanabi

02/04 2017

1.0.0

1.0.0.0

A simple PHP timer that allows to benchamrk the code

  Sources   Download

The Requires

  • php >=7.0

 

The Development Requires

by Adil El Kanabi