Web page loading time using java
How to know the time taken to load a web page using java..?Can any one help me re开发者_开发知识库garding this..Thanks in advance..
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;
加载中,请稍侯......
精彩评论