comparison 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
comparison
equal deleted inserted replaced
611:dd97f7b3d120 612:75f154085a4d
125 * form like HH:MM:SS.mmm 125 * form like HH:MM:SS.mmm
126 */ 126 */
127 std::string toText(bool fixedDp = false) const; 127 std::string toText(bool fixedDp = false) const;
128 128
129 /** 129 /**
130 * Return a user-readable string in which seconds are divided into
131 * frames (presumably at a lower frame rate than audio rate,
132 * e.g. 24 or 25 video frames), in a form like HH:MM:SS:FF. fps
133 * gives the number of frames per second, and must be integral
134 * (29.97 not supported).
135 */
136 std::string toFrameText(int fps) const;
137
138 /**
130 * Return a user-readable string to the nearest second, in a form 139 * Return a user-readable string to the nearest second, in a form
131 * like "6s" (for less than a minute) or "2:21" (for more). 140 * like "6s" (for less than a minute) or "2:21" (for more).
132 */ 141 */
133 std::string toSecText() const; 142 std::string toSecText() const;
134 143