diff base/RealTime.h @ 612:75f154085a4d

* Add time display format preference
author Chris Cannam
date Fri, 25 Sep 2009 12:02:22 +0000
parents 81963c51b488
children cc27f35aa75c
line wrap: on
line diff
--- a/base/RealTime.h	Fri Sep 11 15:42:32 2009 +0000
+++ b/base/RealTime.h	Fri Sep 25 12:02:22 2009 +0000
@@ -127,6 +127,15 @@
     std::string toText(bool fixedDp = false) const;
 
     /**
+     * Return a user-readable string in which seconds are divided into
+     * frames (presumably at a lower frame rate than audio rate,
+     * e.g. 24 or 25 video frames), in a form like HH:MM:SS:FF.  fps
+     * gives the number of frames per second, and must be integral
+     * (29.97 not supported).
+     */
+    std::string toFrameText(int fps) const;
+
+    /**
      * Return a user-readable string to the nearest second, in a form
      * like "6s" (for less than a minute) or "2:21" (for more).
      */