<html>

<head>

<title>script run time</title>

</head>

<body>

<script language=jscript runat=server>

function y2k(number) { return (number < 1000) ? number + 1900 :

number; }

function milliDif() {

var d = new Date();

return Date.UTC(y2k(d.getYear()),d.getMonth(),d.getDate(),d.getHours(),

d.getMinutes(),d.getSeconds(), d.getMilliseconds())

}

</script>

<%

' PLACE BEFORE THE CODE YOU WANT TO TIME

timeThen = milliDif()

anyVariable = Request.ServerVariables("REMOTE_ADDR")

Response.Write(anyVariable)

' *************

' YOUR ASP HERE

' *************

' PLACE IMMEDIATELY AFTER THE PROCESS FINISHES

timeNow = milliDif()

response.write "<br>Process time in ms: " & timeNow-timeThen

%>

</body>

</html>