<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function(){
var startTime = new Date().getTime();
var requestInterval = window.setInterval(function() {
$("#content_area").html("Time Elapsed :"+(new Date().getTime() - startTime) / 1000+" Seconds");
}, 500);
jQuery.get('URLofYOURScriptHERE',
function(data, status, xhr) {
clearInterval(requestInterval)
var timeTaken = new Date().getTime() - startTime;
$("#content_area").html(data);
}
);
});
</script>
<body>
<div id="content_area">
</div>
</body>