ASTERIXDB-1501: fix the reported executionTime and elapsedTime.

Change-Id: Ide5ba41e1b9fbbfdc1a9abf5a0971dfa17e980cf
Reviewed-on: https://asterix-gerrit.ics.uci.edu/961
Reviewed-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Michael Blow <michael.blow@couchbase.com>
diff --git a/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/servlet/QueryServiceServlet.java b/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/servlet/QueryServiceServlet.java
index a080c83..c62389f 100644
--- a/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/servlet/QueryServiceServlet.java
+++ b/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/servlet/QueryServiceServlet.java
@@ -352,8 +352,7 @@
             printStatus(resultWriter, ResultStatus.fatal);
             respCode = HttpServletResponse.SC_INTERNAL_SERVER_ERROR;
         }
-        printMetrics(resultWriter, (System.nanoTime() - elapsedStart) / 1000, (execEnd - execStart) / 1000, stats.count,
-                stats.size);
+        printMetrics(resultWriter, System.nanoTime() - elapsedStart, execEnd - execStart, stats.count, stats.size);
         resultWriter.print("}\n");
         resultWriter.flush();
         String result = stringWriter.toString();