git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@1059
35b4ef3e-fd22-0410-ab77-
dab3279adceb
- * frsh_usec_to_abs_time()
+ * frsh_usec_to_rel_time()
*
* Convert an integer value of microseconds into an absolute instant.
*/
*
* 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);
return fosa_rel_time_to_usec(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
******************************************/
/******************************************
* Conversion to-from POSIX timespec format
******************************************/