Mercurial > hg > svcore
diff base/RealTime.h @ 1542:6415ac3becb6 zoom
Use proper decimal delimiter
author | Chris Cannam |
---|---|
date | Fri, 28 Sep 2018 18:06:05 +0100 |
parents | 71207822a7e0 |
children |
line wrap: on
line diff
--- a/base/RealTime.h Thu Sep 27 15:53:34 2018 +0100 +++ b/base/RealTime.h Fri Sep 28 18:06:05 2018 +0100 @@ -57,8 +57,8 @@ sec(r.sec), nsec(r.nsec) { } static RealTime fromSeconds(double sec); - static RealTime fromMilliseconds(int msec); - static RealTime fromMicroseconds(int usec); + static RealTime fromMilliseconds(int64_t msec); + static RealTime fromMicroseconds(int64_t usec); static RealTime fromTimeval(const struct timeval &); static RealTime fromXsdDuration(std::string xsdd); @@ -172,7 +172,8 @@ * Unlike toText, this function does not depend on the application * preferences. */ - std::string toFrameText(int fps, bool hms) const; + std::string toFrameText(int fps, bool hms, + std::string frameDelimiter = ":") const; /** * Return a user-readable string to the nearest second, in H:M:S