1 #ifndef PROTON_TIMESTAMP_HPP 2 #define PROTON_TIMESTAMP_HPP 23 #include "./duration.hpp" 30 class timestamp :
private internal::comparable<timestamp> {
39 explicit timestamp(numeric_type ms = 0) : ms_(ms) {}
66 #endif // PROTON_TIMESTAMP_HPP timestamp & operator=(numeric_type ms)
Assign from milliseconds.
Definition: timestamp.hpp:42
std::ostream & operator<<(std::ostream &, const binary &)
Print a binary value.
timestamp(numeric_type ms=0)
Construct from milliseconds.
Definition: timestamp.hpp:39
A span of time in milliseconds.
Definition: duration.hpp:34
numeric_type milliseconds() const
Return milliseconds.
Definition: duration.hpp:46
static timestamp now()
The current wall-clock time.
int64_t numeric_type
A numeric type holding a milliseconds value.
Definition: timestamp.hpp:33
A 64-bit timestamp in milliseconds since the Unix epoch.
Definition: timestamp.hpp:30
numeric_type milliseconds() const
Get milliseconds.
Definition: timestamp.hpp:45
Type traits for mapping between AMQP and C++ types.
Definition: annotation_key.hpp:28