i think your general theory here is right, that would time from the start of execution to the end of display - but you'd need to get the time var from php to javascript, and then use dhtml to calculate the final time (as the page has loaded already)
when i set up my last site, i saw no point in timing display - as you cannot make amends for people having poor connections, so i just stuck to timing execution.
i started with an article by Allan Kent right here on phpbuilder and took things from there...
adam