diff options
Diffstat (limited to 'qpid/cpp/src/tests')
-rw-r--r-- | qpid/cpp/src/tests/echotest.cpp | 2 | ||||
-rw-r--r-- | qpid/cpp/src/tests/latencytest.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/echotest.cpp b/qpid/cpp/src/tests/echotest.cpp index dcb1869e4d..5114ab883d 100644 --- a/qpid/cpp/src/tests/echotest.cpp +++ b/qpid/cpp/src/tests/echotest.cpp @@ -64,7 +64,7 @@ struct Args : public qpid::Options, uint64_t current_time() { - Duration t(now()); + Duration t(EPOCH, now()); return t; } diff --git a/qpid/cpp/src/tests/latencytest.cpp b/qpid/cpp/src/tests/latencytest.cpp index a205ef6c7c..20eb4568f3 100644 --- a/qpid/cpp/src/tests/latencytest.cpp +++ b/qpid/cpp/src/tests/latencytest.cpp @@ -97,7 +97,7 @@ Connection globalConnection; uint64_t current_time() { - Duration t(now()); + Duration t(EPOCH, now()); return t; } @@ -363,7 +363,7 @@ void Sender::sendByRate() AbsTime start = now(); while (true) { AbsTime sentAt=now(); - msg.getDeliveryProperties().setTimestamp(Duration(sentAt)); + msg.getDeliveryProperties().setTimestamp(Duration(EPOCH, sentAt)); async(session).messageTransfer(arg::content=msg, arg::acceptMode=1); if (opts.sync) session.sync(); ++sent; |