classes/phing/listener/XmlLogger.php
public function taskFinished(BuildEvent $event)
    {
        $taskTimerStart = array_pop($this->timesStack);
        $taskElement = array_pop($this->elementStack);

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

        $parentElement = $this->elementStack[count($this->elementStack) - 1];
        $parentElement->appendChild($taskElement);
    }
public function taskFinished(BuildEvent $event)
    {
        $taskTimerStart = array_pop($this->timesStack);
        $taskElement = array_pop($this->elementStack);

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

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

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