summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/Statistics.cpp
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
commitbb69ac2090b9afb719ce4e4b9130226c34e591d9 (patch)
tree8e652da48ace0561f19c429cfbfba1d6af0630b5 /qpid/cpp/src/tests/Statistics.cpp
parent729bd42f4945c0636654c92979a8903fa972586f (diff)
downloadqpid-python-bb69ac2090b9afb719ce4e4b9130226c34e591d9.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@931782 13f79535-47bb-0310-9956-ffa450edef68
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 09286e3298..3c5a3a6d4e 100644
--- a/qpid/cpp/src/tests/Statistics.cpp
+++ b/qpid/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;