}
/**
- * 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);
}
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
******************************************/