time - When has the PHP script finished executing? -
i have script
starts timer
$time_start = microtime(true);
connects soap web service , displays results... results later sent ecommerce platform via api
// connect soap... , print_r ($results);
displays time on last line of code.
echo "time: " . (microtime(true) - $time_start);
it's important process not take long. i've noticed when execute script in browser, browser may display "time: x seconds" part in x=60 seconds won't see $results part 10 minutes (or can see few lines, @ least enough fill screen).
what wondering when script has finished executing, if microtime timer shows 60 seconds, has finished in 60 seconds, or has finished when $results displayed?
when script ready, not need display $results, me check if working. how know how long takes script run?
wiki
Comments
Post a Comment