...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::interprocess::usduration
// In header: <boost/interprocess/timed_utils.hpp> class usduration { public: // public member functions explicit usduration(boost::uint64_t = 0u); boost::uint64_t get_microsecs() const; bool operator<(const usduration &) const; bool operator>(const usduration &) const; bool operator<=(const usduration &) const; bool operator>=(const usduration &) const; };
Describes a simple duration type with microsecond resolution that can be used with the ustime time-point utility to call timed functions of Boost.Interprocess' synchronization classes that expect a duration type (wait_for, lock_for...)
usduration
public member functionsexplicit usduration(boost::uint64_t microsecs = 0u);
Constructs a duration type that stores microseconds from the passed count
boost::uint64_t get_microsecs() const;
Returns the stored microsecond count
bool operator<(const usduration & other) const;
bool operator>(const usduration & other) const;
bool operator<=(const usduration & other) const;
bool operator>=(const usduration & other) const;