PHP Reboot Stop Watch: Record time PHP blocks take to execute – PHP Classes

  • The example shows measuring time in multiple intervals.
  • Following example show use of StopWatch in simplest form.
  • $stopWatch->start(“c”); for ($c = 0; $c pause(“c”); } printf(“Time taken in block ‘a’: %f seconds.n”, $stopWatch->getTime(“a”)); printf(“Time taken in block ‘b’: %f seconds.n”, $stopWatch->getTime(“b”)); printf(“Time taken in block ‘c’: %f seconds.n”, $stopWatch->getTime(“c”));

Read the full article, click here.


@daycry9: “PHP RebootStopWatcH (New) #PHP #AngularJS”


This package can record time PHP blocks take to execute. It can start measuring time at a given point of a script and stop at the end of the block that is being timed. The class can also pause the timer to not count the paused time in the overall period that elapsed.


PHP Reboot Stop Watch: Record time PHP blocks take to execute – PHP Classes

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.