Switch to full style
ASP/ASP.net examples
Post a reply

calculate the load time for a page

Sun Apr 03, 2011 10:25 pm

To calculate the time for a page to load , you will need put two part of code at different places , one at the beginning of code and the other one at the end of page code.

At the header of your page .
Code:
<% 
Dim timeBegin
timeBegin
= Timer 
%>
 

At the footer of your page
Code:


<% 
Dim timeEnd
, timeDifference
timeEnd
= Timer 
timeDifference
= FormatNumber(timeBegin- timeEnd,5) 
Response
.Write "Load time is  " & timeDifference& "seconds" 
%>
 




Post a reply
  Related Posts  to : calculate the load time for a page
 How to increase WordPress Blog speed-decrease Page load time     -  
 Calculate process time     -  
 Add double quotes to text dynamically, on page load     -  
 Image Scroller-scrollbar-LINE_UP,LINE_DOWN-PAGE-UP-PAGE-DOWN     -  
 load class to applet- load frame class to applet     -  
 calculate speed of a car in javaCV     -  
 help me How do I load image from my pc to matlab     -  
 Calculate score of the student     -  
 Calculate the sum of values in an array     -  
 How to Load Files using JFileChooser!!     -  

Topic Tags

ASP Time