summaryrefslogtreecommitdiff
path: root/cpp/src/tests
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-04-08 04:53:33 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-04-08 04:53:33 +0000
commite0d767b10057149be7ef502687c4d943582ee2c0 (patch)
treeb9ee19d430056822c6c5cd0e83f9caa747d5d1ed /cpp/src/tests
parentb799ad84fe13f0573a3423b2097c8931859d16eb (diff)
downloadqpid-python-e0d767b10057149be7ef502687c4d943582ee2c0.tar.gz
Changed the recent AbsTime::Epoch code to conform better to the previously
existing code. Fixed AbsTime to compile on Windows again. Removed unused and seemingly extraneous serialize() code from AbsTime. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@931782 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests')
-rw-r--r--cpp/src/tests/Statistics.cpp2
-rw-r--r--cpp/src/tests/qpid_send.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/Statistics.cpp b/cpp/src/tests/Statistics.cpp
index 09286e3298..3c5a3a6d4e 100644
--- a/cpp/src/tests/Statistics.cpp
+++ b/cpp/src/tests/Statistics.cpp
@@ -57,7 +57,7 @@ void ThroughputAndLatency::message(const messaging::Message& m) {
types::Variant::Map::const_iterator i = m.getProperties().find("ts");
if (i != m.getProperties().end()) {
int64_t start(i->second.asInt64());
- int64_t end(sys::Duration(sys::AbsTime::epoch(),sys::now()));
+ int64_t end(sys::Duration(sys::EPOCH, sys::now()));
double latency = double(end - start)/sys::TIME_MSEC;
if (latency > 0) {
total += latency;
diff --git a/cpp/src/tests/qpid_send.cpp b/cpp/src/tests/qpid_send.cpp
index 26e9003b2d..feeabefbdd 100644
--- a/cpp/src/tests/qpid_send.cpp
+++ b/cpp/src/tests/qpid_send.cpp
@@ -251,7 +251,7 @@ int main(int argc, char ** argv)
msg.setContent(content);
msg.getProperties()["sn"] = ++sent;
msg.getProperties()["ts"] = int64_t(
- qpid::sys::Duration(qpid::sys::AbsTime::epoch(), qpid::sys::now()));
+ qpid::sys::Duration(qpid::sys::EPOCH, qpid::sys::now()));
sender.send(msg);
reporter.message(msg);
if (opts.tx && (sent % opts.tx == 0)) {