Class SubsecondPrecision

Synopsis

#include <src/easylogging++.h>

class SubsecondPrecision

Description

A subsecond precision class containing actual width and offset of the subsecond part.

Mentioned in

Methods

SubsecondPrecision overload
operator==

Source

Lines 838-853 in src/easylogging++.h.

class SubsecondPrecision {
 public:
  SubsecondPrecision(void) {
    init(base::consts::kDefaultSubsecondPrecision);
  }
  explicit SubsecondPrecision(int width) {
    init(width);
  }
  bool operator==(const SubsecondPrecision& ssPrec) {
    return m_width == ssPrec.m_width && m_offset == ssPrec.m_offset;
  }
  int m_width;
  unsigned int m_offset;
 private:
  void init(int width);
};





Add Discussion

Log in to comment