summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/Statistics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src/tests/Statistics.cpp')
-rw-r--r--qpid/cpp/src/tests/Statistics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/Statistics.cpp b/qpid/cpp/src/tests/Statistics.cpp
index 19531762b1..7cacde8b74 100644
--- a/qpid/cpp/src/tests/Statistics.cpp
+++ b/qpid/cpp/src/tests/Statistics.cpp
@@ -64,7 +64,7 @@ void ThroughputAndLatency::message(const messaging::Message& m) {
if (i != m.getProperties().end()) {
++samples;
int64_t start(i->second.asInt64());
- int64_t end(sys::Duration(sys::EPOCH, sys::now()));
+ int64_t end(sys::Duration::FromEpoch());
double latency = double(end - start)/sys::TIME_MSEC;
if (latency > 0) {
total += latency;