ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wascally Wabbit <>
Subject Re: measuring performance of a task
Date Mon, 27 Sep 2004 14:11:16 GMT
Ant-contrib's <stopwatch> can help you do this easily, like:

<target name="MyTarget">
   <stopwatch name="MyTarget.time" action="start"/>
     [work work work]
   <stopwatch name="MyTarget.time" action="total"/>
   <echo message="It Took: ${MyTarget.time}" file="MyLogs.log".../>

At 09:28 AM 9/27/2004, you wrote:

>I would like to automatically measure the time ant spends executing a
>task and write it to my logfile.
>What's the best way to do that? I would like to avoid writing a custom
>task in Java.
>Thank you
>To unsubscribe, e-mail:
>For additional commands, e-mail:

The Wabbit 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message