 			else 
 			{
 				xml =
-					"<testcase classname='"+descriptor.suite+"' name='"+descriptor.method+"' time='0.000'  status='"+FAILURE+"'>"
+					"<testcase classname='"+descriptor.suite+"' name='"+descriptor.method+"' time='" + testTimeString( lastTestTime ) +"' status='"+FAILURE+"'>"
 					+ "<failure message='" + message + "' type='"+ type +"' >"
 					+ "<![CDATA[" + stackTrace + "]]>"
 					+ "</failure>"

	import org.flexunit.runner.Result;
	import org.flexunit.runner.notification.Failure;
	import org.flexunit.runner.notification.IAsyncStartupRunListener;
	import org.flexunit.runner.notification.async.AsyncListenerWatcher;
	
	public class CIListener extends EventDispatcher implements IAsyncStartupRunListener
	{
		protected static const DEFAULT_PORT : uint = 1024;
		protected static const DEFAULT_SERVER : String = "127.0.0.1";

			// called after each test
			if(!lastFailedTest || description.displayName != lastFailedTest.displayName){
				var desc:Descriptor = getDescriptorFromDescription(description);
				
				sendResults("<testcase classname='"+desc.suite+"' name='"+desc.method+"' time='" + testTimeString( lastTestTime ) +"' status='"+SUCCESS+"'/>");
			}
		}
		
