Qpid Proton C++ API  0.17.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
duration Class Reference

A span of time in milliseconds. More...

#include <duration.hpp>

Inheritance diagram for duration:

Public Types

typedef int64_t numeric_type
 Numeric type used to store milliseconds.
 

Public Member Functions

 duration (numeric_type ms=0)
 Construct from milliseconds.
 
durationoperator= (numeric_type ms)
 Assign.
 
numeric_type milliseconds () const
 Return milliseconds.
 

Static Public Attributes

static const duration FOREVER
 Wait forever.
 
static const duration IMMEDIATE
 Don't wait at all.
 
static const duration SECOND
 One second.
 
static const duration MINUTE
 One minute.
 

Detailed Description

A span of time in milliseconds.

Examples:
mt/epoll_container.cpp, scheduled_send.cpp, scheduled_send_03.cpp, and service_bus.cpp.

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