X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Futil.h;h=572bed31814e6bba0baa670027e1762f04b261c9;hp=1af3ce93ac5f7179e346dde7310b03f4d2249007;hb=62974f456595f3f6b9804a8f0fb993b4766d61e7;hpb=f0c9f81c03d2c1d1fa59c357a88d25f6a3128651 diff --git a/pv/util.h b/pv/util.h index 1af3ce93..572bed31 100644 --- a/pv/util.h +++ b/pv/util.h @@ -44,6 +44,15 @@ QString format_time( double t, unsigned int prefix, unsigned precision = 0, bool sign = true); +/** + * Formats a given time value with a SI prefix so that the + * value is between 1 and 999. + * @param second The time value in seconds to format. + * + * @return The formated value. + */ +QString format_second(double second); + } // namespace util } // namespace pv