1 #ifndef PROTON_TIMESTAMP_HPP 2 #define PROTON_TIMESTAMP_HPP 23 #include "./duration.hpp" 25 #include <proton/type_compat.h> 32 class timestamp :
private internal::comparable<timestamp> {
41 explicit timestamp(numeric_type ms = 0) : ms_(ms) {}
68 #endif // PROTON_TIMESTAMP_HPP timestamp & operator=(numeric_type ms)
Assign from milliseconds.
Definition: timestamp.hpp:44
std::ostream & operator<<(std::ostream &, const binary &)
Print a binary value.
numeric_type milliseconds() const
Get milliseconds.
Definition: timestamp.hpp:47
timestamp(numeric_type ms=0)
Construct from milliseconds.
Definition: timestamp.hpp:41
A span of time in milliseconds.
Definition: duration.hpp:36
static timestamp now()
The current wall-clock time.
int64_t numeric_type
A numeric type holding a milliseconds value.
Definition: timestamp.hpp:35
A 64-bit timestamp in milliseconds since the Unix epoch.
Definition: timestamp.hpp:32
numeric_type milliseconds() const
Return milliseconds.
Definition: duration.hpp:48
The main Proton namespace.
Definition: annotation_key.hpp:30