time - When has the PHP script finished executing? -




i have script

  1. starts timer

    $time_start = microtime(true); 
  2. connects soap web service , displays results... results later sent ecommerce platform via api

    // connect soap... , print_r ($results); 
  3. 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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -