Originally posted by Andreas Schildbach:
Hello everyone,
Does anyone know of a Taglib that allows to measure the time needed to "execute" the body content? Something like:
<time:time var="timevalue">
...fragment to be measured...
</time:time>
time needed: ${timevalue} milliseconds.
Regards,
Andreas
There may be a tag library available for this that I'm not aware of, but this is a case where a tag library may be overkill and a couple of simple scriptlets may be a better choice (assuming it's just used during development; if you need this in production it's a different matter):
<% long start = System.currentTimeMillis(); %>
...fragment to be measured...
time needed: <%= System.currentTimeMillis() - start; %> milliseconds.
[ March 11, 2004: Message edited by: Hans Bergsten ]