Let ant calculate the duration of the target for you - 

        http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html


SKent
x8014

-----Original Message-----
From: Mario Madunic [mailto:[email protected]] 
Sent: Thursday, January 21, 2010 11:00 AM
To: Ant Users List
Subject: Timestamps and finding the difference (mm:ss)

(using ANT 1.7 on Windows XP sp3)

I like to get the timestamp before a task is executed, and one when the task is 
finished, and then calculate the difference to get the duration of the task?

I’d like to do this so I can see how long certain tasks take to run.

I see that I can create a timestamp property as follows:

<tstamp><format property=”timeStart” pattern=”hh:mm:ss” /></tstamp>
<tstamp><format property=”timeEnd” pattern=”hh:mm:ss” /></tstamp>

But can't find info (easily) on how to do some math to get the difference in 
time. Any insight would be appreciated.

Thanks

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

--------------------------------------------------------------------
Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or 
material transmitted with this communication) is confidential, may be 
privileged and is intended only for the use of the intended recipient. If you 
are not the intended recipient, any review, retransmission, circulation, 
distribution, reproduction, conversion to hard copy, copying or other use of 
this communication, information or material is strictly prohibited and may be 
illegal. If you received this communication in error or if it is forwarded to 
you without the express authorization of New Flyer, please notify us 
immediately by telephone or by return email and permanently delete the 
communication, information and material from any computer, disk drive, diskette 
or other storage device or media. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


_____________

The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
_____________

Reply via email to