Home » questions » How can i calculate how long a webpage (PHP) refresh.Can you help me?

How can i calculate how long a webpage (PHP) refresh.Can you help me?

2006-08-17 16:28:25, Category: Programming & Design
I try use a variable save time: $time_start=time(); function calculate(time){ var futdate = new Date() var time_end= (futdate.getTime())/1000 alert (time_end-time_start); } And i use But it run wrong.I think because time_start variable, but i cant repair. How can i calculate how long a webpage refresh?Can you help me. Thanks

Answers

  1. blu3bird

    On 2006-08-17 21:03:58


    why do you want to calculate the time for your page refresh ?? and pop up an alert dialog to see the time ?? in fact your codes are ... can you do time minus time ??? if im not mistaken, what you want is a script to calculate time taken for page to be generated right ?? heres a link to the tutorial