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]
