Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
Class to represent the duration between instants of time. More...
#include <qpid/sys/Time.h>
Public Member Functions | |
QPID_COMMON_INLINE_EXTERN | Duration (int64_t time0=0) |
Duration (const AbsTime &start, const AbsTime &finish) | |
operator int64_t () const |
Class to represent the duration between instants of time.
As AbsTime, this class also uses nanosecs for its time resolution where possible. For the most part a duration can be dealt with like a 64 bit integer, and indeed there is an implicit conversion which makes this quite convenient.
qpid::sys::Duration::Duration | ( | int64_t | time0 = 0 | ) | [inline] |
qpid::sys::Duration::Duration | ( | const AbsTime & | start, |
const AbsTime & | finish | ||
) | [explicit] |