classes/phing/listener/XmlLogger.php
public function targetFinished(BuildEvent $event)
    {
        $targetTimerStart = array_pop($this->timesStack);
        $targetElement = array_pop($this->elementStack);

        $elapsedTime = Phing::currentTimeMillis() - $targetTimerStart;
        $targetElement->setAttribute(XmlLogger::TIME_ATTR, DefaultLogger::formatTime($elapsedTime));

        $parentElement = $this->elementStack[count($this->elementStack) - 1];
        $parentElement->appendChild($targetElement);
    }
public function targetFinished(BuildEvent $event)
    {
        $targetTimerStart = array_pop($this->timesStack);
        $targetElement = array_pop($this->elementStack);

        $elapsedTime = Phing::currentTimeMillis() - $targetTimerStart;
        $targetElement->setAttribute(XmlLogger::TIME_ATTR, DefaultLogger::formatTime($elapsedTime));

        $parentElement = $this->elementStack[count($this->elementStack) - 1];
        $parentElement->appendChild($targetElement);
    }
public function targetFinished ( BuildEvent $ event ) { $ targetTimerStart = array_pop ( $ this -> timesStack ) ; $ targetElement = array_pop ( $ this -> elementStack ) ; $ elapsedTime = Phing :: currentTimeMillis ( ) - $ targetTimerStart ; $ targetElement -> setAttribute ( XmlLogger :: TIME_ATTR , DefaultLogger :: formatTime ( $ elapsedTime ) ) ; $ parentElement = $ this -> elementStack [ count ( $ this -> elementStack ) - 1 ] ; $ parentElement -> appendChild ( $ targetElement ) ; }
Fired when a target finishes building, this adds the time taken
to the appropriate target element in the log.

@param BuildEvent $event An event with any relevant extra information.
Will not be <code>null</code>.
Fired when a target finishes building this adds the time taken to the appropriate target element in the log .