开发者

Web page loading time using java

开发者 https://www.devze.com 2023-01-30 11:41 出处:网络
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 user

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消