diff vamp-sdk/RealTime.h @ 99:fe31e6aed666

* Add --list-by-category to vamp-simple-host * Some comment updates
author cannam
date Mon, 14 Jan 2008 11:00:41 +0000
parents e33fa45f0935
children 5ee166dccfff
line wrap: on
line diff
--- a/vamp-sdk/RealTime.h	Mon Dec 03 12:57:27 2007 +0000
+++ b/vamp-sdk/RealTime.h	Mon Jan 14 11:00:41 2008 +0000
@@ -125,23 +125,31 @@
 
     RealTime operator/(int d) const;
 
-    // Find the fractional difference between times
-    //
+    /**
+     * Return the ratio of two times.
+     */
     double operator/(const RealTime &r) const;
 
-    // Return a human-readable debug-type string to full precision
-    // (probably not a format to show to a user directly)
-    // 
+    /**
+     * Return a human-readable debug-type string to full precision
+     * (probably not a format to show to a user directly)
+     */ 
     std::string toString() const;
 
-    // Return a user-readable string to the nearest millisecond
-    // in a form like HH:MM:SS.mmm
-    //
+    /**
+     * Return a user-readable string to the nearest millisecond
+     * in a form like HH:MM:SS.mmm
+     */
     std::string toText(bool fixedDp = false) const;
 
-    // Convenience functions for handling sample frames
-    //
+    /**
+     * Convert a RealTime into a sample frame at the given sample rate.
+     */
     static long realTime2Frame(const RealTime &r, unsigned int sampleRate);
+
+    /**
+     * Convert a sample frame at the given sample rate into a RealTime.
+     */
     static RealTime frame2RealTime(long frame, unsigned int sampleRate);
 
     static const RealTime zeroTime;