@brief A subsecond precision class containing actual width and offset of the subsecond part
| 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 |