Do you mean how long it takes to compile, or how long it takes to execute the compiled class? If the former, I don't have an answer. If the later though, try this at the top of your page:

long l1 = System.currentTimeMillis();

And then this at the end:

long l2 = System.currentTimeMillis();
System.out.println("Execution time: " + (l2 - l1));

Make sure it's outside any logic, i.e, that both portions will always execute, and it should do the trick.

Frank

From: "Emre" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: JSP page processing time
Date: Thu, 3 Jun 2004 19:30:21 -0400

Is there a method or variable that I can use in a JSP page to display how
long it took to process that page. I know PHP has something like that. Does
Tomcat have a similar thing for JSPs?



Thanx


_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee� Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to