| Home | Libraries | People | FAQ | More

## Class ustime

boost::interprocess::ustime

## Synopsis

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

    class ustime {
    public:

      // public member functions
      explicit ustime(boost::uint64_t = 0u);
      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 member functions

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

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

2.     ustime & operator+=(const usduration & other);

3.     ustime operator+(const usduration & other);

4.     ustime & operator-=(const usduration & other);

5.     ustime operator-(const usduration & other);

6.     bool operator<(const ustime & other) const;

7.     bool operator>(const ustime & other) const;

8.     bool operator<=(const ustime & other) const;

9.     bool operator>=(const ustime & other) const;

10.     boost::uint64_t get_microsecs() const;

    Returns the stored count that represents microseconds from epoch