]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
Adding frsh_usec_to_rel_time()
authortelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Tue, 1 Apr 2008 16:07:24 +0000 (16:07 +0000)
committertelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Tue, 1 Apr 2008 16:07:24 +0000 (16:07 +0000)
git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@1059 35b4ef3e-fd22-0410-ab77-dab3279adceb

frsh_time.h

index b31f4b359e696fd7cdfafed04c61480cc3ee7e6f..b84612c730146f06fbad2836a0590aabde20e719 100644 (file)
@@ -254,13 +254,13 @@ static inline long frsh_abs_time_to_msec(frsh_abs_time_t instant)
 }
 
 /**
- * frsh_usec_to_abs_time() 
+ * frsh_usec_to_rel_time() 
  *
  * Convert an integer value of microseconds into an absolute instant.
  */
-static inline frsh_abs_time_t frsh_usec_to_abs_time(long usec)
+static inline frsh_rel_time_t frsh_usec_to_rel_time(long usec)
 {
-    return fosa_usec_to_abs_time(usec);
+    return fosa_usec_to_rel_time(usec);
 }
 
 
@@ -274,6 +274,27 @@ static inline long frsh_rel_time_to_usec(frsh_rel_time_t interval)
     return fosa_rel_time_to_usec(interval);
 }
 
+/**
+ * frsh_usec_to_abs_time() 
+ *
+ * Convert an integer value of microseconds into an absolute instant.
+ */
+static inline frsh_abs_time_t frsh_usec_to_abs_time(long usec)
+{
+    return fosa_usec_to_abs_time(usec);
+}
+
+
+/**
+ * frsh_abs_time_to_usec() 
+ *
+ * Convert a relative interval into an integer number of microseconds.
+ */
+static inline long frsh_abs_time_to_usec(frsh_abs_time_t interval)
+{
+    return fosa_abs_time_to_usec(interval);
+}
+
 /******************************************
  * Conversion to-from POSIX timespec format
  ******************************************/