]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_time.h
trace distributed flag
[frescor/frsh-include.git] / 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
  ******************************************/