Reputation: 3109
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
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