Fixed the time measurement from milli to microseconds.
Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/040a511a Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/040a511a Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/040a511a Branch: refs/heads/disallow-negative-workers Commit: 040a511aad35cb958d9d532fabc002313952cb11 Parents: b258821 Author: Harshad Deshmukh <hbdeshm...@apache.org> Authored: Sat Jul 2 15:58:52 2016 -0500 Committer: Harshad Deshmukh <hbdeshm...@apache.org> Committed: Sat Jul 2 15:58:52 2016 -0500 ---------------------------------------------------------------------- query_execution/Worker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/040a511a/query_execution/Worker.cpp ---------------------------------------------------------------------- diff --git a/query_execution/Worker.cpp b/query_execution/Worker.cpp index ae889c7..6ba27f1 100644 --- a/query_execution/Worker.cpp +++ b/query_execution/Worker.cpp @@ -121,7 +121,7 @@ void Worker::executeWorkOrderHelper(const TaggedMessage &tagged_message, end = std::chrono::steady_clock::now(); delete worker_message.getWorkOrder(); const uint64_t execution_time_microseconds = - std::chrono::duration_cast<std::chrono::milliseconds>(end - start) + std::chrono::duration_cast<std::chrono::microseconds>(end - start) .count(); // Construct the proto message. proto->set_operator_index(worker_message.getRelationalOpIndex());