diff options
author | mattinger <[email protected]> | 2006-07-06 21:53:00 +0000 |
---|---|---|
committer | mattinger <[email protected]> | 2006-07-06 21:53:00 +0000 |
commit | 1159111b7a71b72eb04326df33211e1733f7e742 (patch) | |
tree | f0a80c384f633e521649654ab78e6239cf5e0d6f /docs/manual/tasks/stopwatch_task.html |
Initial addition into subversion with build script changes
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@5 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'docs/manual/tasks/stopwatch_task.html')
-rw-r--r-- | docs/manual/tasks/stopwatch_task.html | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/docs/manual/tasks/stopwatch_task.html b/docs/manual/tasks/stopwatch_task.html new file mode 100644 index 0000000..8520c78 --- /dev/null +++ b/docs/manual/tasks/stopwatch_task.html @@ -0,0 +1,115 @@ +<html> +<head> +<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<title> +Stopwatch</title> +<meta content="DocBook XSL Stylesheets V1.60.1" name="generator"> +<link rel="home" href="index.html" title="Antelope Users Guide"> +<link rel="up" href="bk03.html" title="Additional Ant Tasks"> +<link rel="previous" href="bk03ch08.html" title="Chapter 8. Variable Task"> +<link rel="next" href="bk03ch10.html" title="Chapter 10. Limit"> +</head> +<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> +<div class="chapter" lang="en"> +<div class="titlepage"> +<div> +<div> +<h2 class="title"> +<a name="stopwatch"> +</a> +Stopwatch</h2> +</div> +</div> +<div> +</div> +</div> +<p> + +The Stopwatch task makes it easy to add performance timing to Ant targets. Stopwatches are named so that multiple watches can run simultaneously. +</p> + +<p> + +<div class="table"> +<a name="N1092E"> +</a> +<p class="title"> +<b> +Table 9.1. Stopwatch Task Attributes</b> +</p> +<table summary="Stopwatch Task Attributes" border="1"> +<colgroup> +<col> +<col> +<col> +<col> +</colgroup> +<thead> +<tr> +<th> +Attribute</th> +<th> +Description</th> +<th> +Default</th> +<th> +Required</th> +</tr> +</thead> +<tbody> +<tr> +<td> +name</td> +<td> +The name for the stopwatch. The elapsed time or total time will be stored as an Ant property with this name.</td> +<td> +None</td> +<td> +Yes</td> +</tr> +<tr> +<td> +action</td> +<td> +Valid values are "start", "stop", "elapsed", and "total".</td> +<td> +"start"</td> +<td> +No</td> +</tr> +</tbody> +</table> +</div> + +</p> +<p> + +The stopwatch is started with the "start" action. When the action is "elapsed" or "total", the running time of the stopwatch is printed out. Both "stop" and "total" stop the stopwatch and reset it to zero. "elapsed" prints out the current running time of the stopwatch without stopping it. +</p> +<p> + +Example: +<table border="0" bgcolor="#E0E0E0"> +<tr> +<td> +<pre class="programlisting"> + + +<stopwatch name="timer1"/> +<!-- do some tasks here... --> +<stopwatch name="timer1" action="elapsed"/> <!-- print the elapsed time --> +<!-- do some more tasks here... --> +<stopwatch name="timer1" action="total"/> <!-- print out the total time --> + +</pre> +</td> +</tr> +</table> + +</p> +</div> + <hr> + <p align="center">Copyright © 2003 Ant-Contrib Project. All + rights Reserved.</p> +</body> +</html> |