diff options
author | Andrew Stitcher <astitcher@apache.org> | 2010-04-23 03:59:52 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2010-04-23 03:59:52 +0000 |
commit | b4738c5e99ee9e751f45deb177270bc0bb0a775e (patch) | |
tree | 492aaa6da19f33540e3aa31d6da166c130e60f55 /qpid/cpp/src/tests/latencytest.cpp | |
parent | 8503ad14763c515f20303c790589d7b5317e4877 (diff) | |
download | qpid-python-b4738c5e99ee9e751f45deb177270bc0bb0a775e.tar.gz |
QPID-1904: Ensure that all timestamp uses are correctly relative to 1/1/1970 epoch.
- Removed the hacky way to access the internal time value in AbsTime now that there
is a defined AbsTime value EPOCH.
- Changed all the code to use Duration(EPOCH, abtime)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@937147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/latencytest.cpp')
-rw-r--r-- | qpid/cpp/src/tests/latencytest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |