diff --git a/build.xml b/build.xml
index 9fa2d16..1bb3a82 100644
--- a/build.xml
+++ b/build.xml
@@ -407,13 +407,14 @@
   <target name="test.time" depends="compile.tests,compile.zoneinfo">
     <echo message="Running time tests ..."/>
     <junit printsummary="yes" haltonfailure="yes">
-      <formatter type="plain" usefile="false" />
+      <formatter type="plain" usefile="true" />
       <classpath>
         <pathelement location="${build.classes}"/>
         <pathelement location="${build.tests}"/>
         <pathelement location="${build.tz}"/>
         <pathelement location="${jodaconvert.jar}"/>
         <pathelement path="${java.class.path}"/>
+        <path refid="emma.lib"/>
       </classpath>
 
       <batchtest fork="yes">
@@ -457,13 +458,21 @@
     </clirr>
   </target>
 
-  <!--property name="emma.dir" value="${lib}" />
+  <property environment="env" />
+  <property name="emma.dir" value="${env.EMMA_HOME}" />
   <path id="emma.lib" >
     <pathelement location="${emma.dir}/emma.jar" />
     <pathelement location="${emma.dir}/emma_ant.jar" />
   </path>
-  <target name="emma" description="turns on EMMA's on-the-fly instrumentation mode" >
+  <target name="emma" description="Instruments compiled classes" depends="compile,compile.tests">
   	<taskdef resource="emma_ant.properties" classpathref="emma.lib" />
-    <property name="emma.enabled" value="true" />
-  </target-->
-</project>
+        <emma>
+            <instr mode="overwrite">
+                <instrpath>
+                    <pathelement location="${build.classes}"/>
+                    <pathelement location="${build.tests}"/>
+                </instrpath>
+            </instr>
+        </emma>
+  </target>
+</project>              
