MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / SubsecondPrecision

Class SubsecondPrecision

include/thundersvm/util/log.h:889–904  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

887 };
888/// @brief A subsecond precision class containing actual width and offset of the subsecond part
889 class SubsecondPrecision {
890 public:
891 SubsecondPrecision(void) {
892 init(base::consts::kDefaultSubsecondPrecision);
893 }
894 explicit SubsecondPrecision(int width) {
895 init(width);
896 }
897 bool operator==(const SubsecondPrecision& ssPrec) {
898 return m_width == ssPrec.m_width && m_offset == ssPrec.m_offset;
899 }
900 int m_width;
901 unsigned int m_offset;
902 private:
903 void init(int width);
904 };
905/// @brief Type alias of SubsecondPrecision
906 typedef SubsecondPrecision MillisecondsWidth;
907/// @brief Namespace containing utility functions/static classes used internally

Callers 1

buildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected