I have a script which do multiple actions in longer time. In standard situation output from PHP script is sent after full execution of this script. Use
Call flush(); just after your code outputs "Element X finished. Y time."
flush();
"Element X finished. Y time."
By default PHP will store all output in the output buffer until it's ready to send to the browser. flush() and ob_flush() force output to be sent.
flush()
ob_flush()