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