From e0d767b10057149be7ef502687c4d943582ee2c0 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 8 Apr 2010 04:53:33 +0000 Subject: 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 --- cpp/src/tests/Statistics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/tests/Statistics.cpp') 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; -- cgit v1.2.1