(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: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to