How can I calculate how long it takes for my page to generate?
Make a note of the time when you start. Make another note of the time when you you finish - the difference is the time it took to do the stuff in between (note: wall time, not CPU time).