qpid::sys::Duration Class Reference

Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
qpid::sys::Duration Class Reference

Class to represent the duration between instants of time. More...

`#include <qpid/sys/Time.h>`

List of all members.

## Public Member Functions
QPID_COMMON_INLINE_EXTERN | Duration (int64_t time0=0)
| Duration (const AbsTime &start, const AbsTime &finish)
| operator int64_t () const

## Detailed Description

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.

## Constructor & Destructor Documentation

qpid::sys::Duration::Duration | ( | int64_t | time0 = `0` | ) | `[inline]`

Definition at line 136 of file Time.h.

qpid::sys::Duration::Duration | ( | const AbsTime & | start,
|  | const AbsTime & | finish
| ) |  | `[explicit]`

## Member Function Documentation

qpid::sys::Duration::operator int64_t | ( |  | ) | const`[inline]`

Definition at line 140 of file Time.h.

The documentation for this class was generated from the following file:

- qpid/sys/Time.h