Sri Sri
Sri Sri

Reputation: 3109

Web page loading time using java

How to know the time taken to load a web page using java..?Can any one help me regarding this..Thanks in advance..

Upvotes: 1

Views: 1415

Answers (1)

Bozho
Bozho

Reputation: 597076

You can use firebug which will give you the exact time, from the users' perspective.

If you want the server-side generation times, you can use a Filter. In its doFilter(..) method have something like:

long start = System.nanoTime();
chain.doFilter(request, responsE);
long time = System.nanoTime() - start;

Upvotes: 2

Related Questions