Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 25434edf3e.
PrevUpHomeNext

Class ustime

boost::interprocess::ustime

Synopsis

// In header: <boost/interprocess/timed_utils.hpp>


class ustime {
public:
  // construct/copy/destruct
  explicit ustime(boost::uint64_t = 0u);

  // public member functions
  ustime & operator+=(const usduration &);
  ustime operator+(const usduration &);
  ustime & operator-=(const usduration &);
  ustime operator-(const usduration &);
  bool operator<(const ustime &) const;
  bool operator>(const ustime &) const;
  bool operator<=(const ustime &) const;
  bool operator>=(const ustime &) const;
  boost::uint64_t get_microsecs() const;
};

Description

ustime public construct/copy/destruct

  1. explicit ustime(boost::uint64_t microsecs = 0u);

    Constructs a time point that is "microsecs" duration away from the epoch of the system

ustime public member functions

  1. ustime & operator+=(const usduration & other);
  2. ustime operator+(const usduration & other);
  3. ustime & operator-=(const usduration & other);
  4. ustime operator-(const usduration & other);
  5. bool operator<(const ustime & other) const;
  6. bool operator>(const ustime & other) const;
  7. bool operator<=(const ustime & other) const;
  8. bool operator>=(const ustime & other) const;
  9. boost::uint64_t get_microsecs() const;

    Returns the stored count that represents microseconds from epoch


PrevUpHomeNext