summaryrefslogtreecommitdiff
path: root/cpp/src/tests/latencytest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/tests/latencytest.cpp')
-rw-r--r--cpp/src/tests/latencytest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/latencytest.cpp b/cpp/src/tests/latencytest.cpp
index a205ef6c7c..20eb4568f3 100644
--- a/cpp/src/tests/latencytest.cpp
+++ b/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;