function - Determine how long PHP executed so far -
i need determine how long php function has been running far.
what options find out how long php code takes run?
i'm using zend framework.
call microtime(true)
function fetch current time milisecond resolution.
<?php $starttime = microtime(true); /*stuff going on*/ echo "elapsed time is: ". (microtime(true) - $starttime) ." seconds";
Comments
Post a Comment