<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <%@ page session="false" %> <%@ taglib uri="http://jakarta.apache.org/taglibs/benchmark" prefix="benchmark" %> <html> <body> <%-- -- -- Benchmark example application, number two. Author: Shawn Bayern -- -- NOTE: You might not want to run this page as-is, since it just -- pauses for a number of seconds, and you might think there's -- something wrong with your container. :-) -- --%> <%-- "output" example --%> <p> Duration with output=true: <br /> <benchmark:duration output="true"> This body will be displayed. Incidentally, it took approximately the following number of milliseconds to output us: </benchmark:duration> </p> <hr /> <%-- repeated "output" example --%> <p> Duration with output=true repeated 5 times with Thread.sleep(600ms):<br /> <benchmark:duration repeat="5" output="true"> This body will be displayed 5 times, which is more than enough, as far as I'm concerned. <% Thread.sleep(500); %> <br /> </benchmark:duration> </p> <hr /> <%-- "No output" example --%> <p> Duration with output=false with body content: <benchmark:duration> This body is lost to the ages. </benchmark:duration> </p> </body> </html>