21 #ifndef PULSEVIEW_UTIL_HPP
22 #define PULSEVIEW_UTIL_HPP
27 #include <boost/multiprecision/cpp_dec_float.hpp>
56 typedef boost::multiprecision::number<
57 boost::multiprecision::cpp_dec_float<24>,
81 unsigned precision = 0,
103 unsigned precision = 0,
122 signed precision = 0,
130 #endif // PULSEVIEW_UTIL_HPP
QString format_time_si(const Timestamp &v, SIPrefix prefix, unsigned int precision, QString unit, bool sign)
QString format_time_si_adjusted(const Timestamp &t, SIPrefix prefix, unsigned precision, QString unit, bool sign)
int exponent(SIPrefix prefix)
Returns the exponent that corresponds to a given prefix.
QString format_time_minutes(const Timestamp &t, signed precision, bool sign)
Q_DECLARE_METATYPE(std::shared_ptr< sigrok::Driver >)
boost::multiprecision::number< boost::multiprecision::cpp_dec_float< 24 >, boost::multiprecision::et_off > Timestamp
Timestamp type providing yoctosecond resolution.