diff --git a/Test/Tasty/Runners/AntXML.hs b/Test/Tasty/Runners/AntXML.hs
--- a/Test/Tasty/Runners/AntXML.hs
+++ b/Test/Tasty/Runners/AntXML.hs
@@ -7,7 +7,7 @@
 -- in the same schema that would be produced by Apache Ant's JUnit test runner.
 -- This schema can be intepreted by the Jenkins continuous integration server,
 -- amongst other tools.
-module Test.Tasty.Runners.AntXML (antXMLRunner) where
+module Test.Tasty.Runners.AntXML (antXMLRunner, AntXMLPath(..) ) where
 
 import Control.Applicative
 import Control.Arrow (first)
@@ -131,19 +131,22 @@
              options
              testTree
 
-        writeFile path $
-          XML.showTopElement $
-            appEndo (xmlRenderer summary) $
-              XML.node
-                (XML.unqual "testsuites")
-                [ XML.Attr (XML.unqual "errors")
-                    (show . getSum . summaryErrors $ summary)
-                , XML.Attr (XML.unqual "failures")
-                    (show . getSum . summaryFailures $ summary)
-                , XML.Attr (XML.unqual "tests") (show tests)
-                ]
+        return $ \elapsedTime -> do
 
-        return (getSum ((summaryFailures `mappend` summaryErrors) summary) == 0)
+          writeFile path $
+            XML.showTopElement $
+              appEndo (xmlRenderer summary) $
+                XML.node
+                  (XML.unqual "testsuites")
+                  [ XML.Attr (XML.unqual "errors")
+                      (show . getSum . summaryErrors $ summary)
+                  , XML.Attr (XML.unqual "failures")
+                      (show . getSum . summaryFailures $ summary)
+                  , XML.Attr (XML.unqual "tests") (show tests)
+                  , XML.Attr (XML.unqual "time") (show elapsedTime)
+                  ]
+
+          return (getSum ((summaryFailures `mappend` summaryErrors) summary) == 0)
 
   appendChild parent child =
     parent { XML.elContent = XML.elContent parent ++ [ XML.Elem child ] }
diff --git a/tasty-ant-xml.cabal b/tasty-ant-xml.cabal
--- a/tasty-ant-xml.cabal
+++ b/tasty-ant-xml.cabal
@@ -1,5 +1,5 @@
 name: tasty-ant-xml
-version: 1.0.0.9
+version: 1.0.0.10
 synopsis: Render tasty output to XML for Jenkins
 description: A tasty ingredient to output test results in XML, using the Ant schema. This XML can be consumed by the Jenkins continuous integration framework.
 homepage: http://github.com/ocharles/tasty-ant-xml
@@ -24,7 +24,7 @@
     reducers >= 3.10.1,
     stm >= 2.4.2,
     tagged >= 0.7,
-    tasty >= 0.8 && < 0.10,
+    tasty >= 0.10 && < 0.11,
     transformers >= 0.3.0.0,
     xml >= 1.3.13
   default-language: Haskell98
