diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2007-05-22 15:18:08 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2007-05-22 15:18:08 +0000 |
| commit | af7605eecb75d40e9d1c7b8fc32f59a51c00e1d5 (patch) | |
| tree | ca436dfecd1301234765661654cc5204017ce6a0 /qpid/cpp/src/tests/topic_publisher.cpp | |
| parent | 98d79fa020c71de88eca07b526008ca25e7cb193 (diff) | |
| download | qpid-python-af7605eecb75d40e9d1c7b8fc32f59a51c00e1d5.tar.gz | |
* Split apart platform (threading etc.) from network io
you can now use a posix platform implementation by configuring
--disable-apr-platform
* Changed Time classes to distinguish between absolute times (AbsTime)
and durations (Duration). This should avoid bugs caused by confusing
the two types of time.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@540608 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/topic_publisher.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/topic_publisher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/topic_publisher.cpp b/qpid/cpp/src/tests/topic_publisher.cpp index 1c92f75cc8..7c16dd71f3 100644 --- a/qpid/cpp/src/tests/topic_publisher.cpp +++ b/qpid/cpp/src/tests/topic_publisher.cpp @@ -183,7 +183,7 @@ void Publisher::waitForCompletion(int msgs){ int64_t Publisher::publish(int msgs, int listeners, int size){ Message msg; msg.setData(generateData(size)); - Time start = now(); + AbsTime start = now(); { Monitor::ScopedLock l(monitor); for(int i = 0; i < msgs; i++){ @@ -201,8 +201,8 @@ int64_t Publisher::publish(int msgs, int listeners, int size){ waitForCompletion(listeners); } - Time finish = now(); - return finish - start; + AbsTime finish = now(); + return Duration(start, finish); } string Publisher::generateData(int size){ |
