Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 51916 invoked from network); 19 Jul 2007 13:04:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jul 2007 13:04:07 -0000 Received: (qmail 21292 invoked by uid 500); 19 Jul 2007 13:03:39 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 21258 invoked by uid 500); 19 Jul 2007 13:03:38 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 21247 invoked by uid 99); 19 Jul 2007 13:03:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2007 06:03:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [205.158.62.78] (HELO smtp1.us4.outblaze.com) (205.158.62.78) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 19 Jul 2007 06:03:35 -0700 Received: (qmail 16563 invoked from network); 19 Jul 2007 12:49:49 -0000 Received: from unknown (HELO ?127.0.0.1?) (wascallywabbit:earthling.net?mail.com@24.115.216.16) by smtp1.us4.outblaze.com with SMTP; 19 Jul 2007 12:49:49 -0000 Message-ID: <469F60E3.1020907@earthling.net> Date: Thu, 19 Jul 2007 09:02:27 -0400 From: Wascally Wabbit Reply-To: Ant Users List User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Ant Users List CC: dkhanna01@yahoo.co.in Subject: Re: TImestamping in ANT References: <11506172.post@talk.nabble.com> In-Reply-To: <11506172.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org dkhanna01 wrote: > I need to find out the time taken by each of the process/target in our > build.xml file. Now for doing this I have use ANT tstamp task to calculate > the start time and end time of the process. Now my question is how do I find > out the total time taken by the process, I mean is there any way to > calculate difference between "End time" and "Start time" > > Thanks If you can use thirdparty libraries you can use the AntXtra's task like so: ...[all your compiling tasks here] If you want to do this for lots of your targets you can leverage macrodefs to do this for every target using something like: Then use it like so: ...[all your compiling work here in private target] AntXtras is at: http://antxtras.sf.net/ Hope that helps. -The Wabbit --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org