PHP will only be able to calculate the time taken to generate the page before sending it, it would not be able to count in the time taken to download the content etc.
However, at the beginning of your script you could get the current date/time and output this in some JavaScript code as the start time, and then in a JavaScript function get the local system time when the page has finished loading, and work out the total time from there.
Of course, this will depend on the client having the correct time/date and being in the same timezone as the server. So a better method may be to have an Ajax function to get the current time from the server when the page has loaded and use this.