I want to print the execution time taken for each individual Ant target and its dependent targets.
Use one of the listeners from Ant add-on task collections:
-listener net.sf.antcontrib.perf.AntPerformanceListener
Or check their sources, and roll your own listener.