]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
Adding a test to see the time resolution
authortelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Mon, 30 Mar 2009 10:54:27 +0000 (10:54 +0000)
committertelleriam <telleriam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Mon, 30 Mar 2009 10:54:27 +0000 (10:54 +0000)
git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@1597 35b4ef3e-fd22-0410-ab77-dab3279adceb

frsh_time.h

index c1a16c23fb23cca9d8043399b0754fe51808b821..aeb0c594d7b25482f07438f95acf3f02b911d959 100644 (file)
@@ -292,6 +292,48 @@ static inline long frsh_abs_time_to_usec(frsh_abs_time_t interval)
     return fosa_abs_time_to_usec(interval);
 }
 
+/**
+ * frsh_nsec_to_rel_time() 
+ *
+ * Convert an integer value of microseconds into an absolute instant.
+ */
+static inline frsh_rel_time_t frsh_nsec_to_rel_time(long nsec)
+{
+    return fosa_nsec_to_rel_time(nsec);
+}
+
+
+/**
+ * frsh_rel_time_to_nsec() 
+ *
+ * Convert a relative interval into an integer number of microseconds.
+ */
+static inline long frsh_rel_time_to_nsec(frsh_rel_time_t interval)
+{
+    return fosa_rel_time_to_nsec(interval);
+}
+
+/**
+ * frsh_nsec_to_abs_time() 
+ *
+ * Convert an integer value of microseconds into an absolute instant.
+ */
+static inline frsh_abs_time_t frsh_nsec_to_abs_time(long nsec)
+{
+    return fosa_nsec_to_abs_time(nsec);
+}
+
+
+/**
+ * frsh_abs_time_to_nsec() 
+ *
+ * Convert a relative interval into an integer number of microseconds.
+ */
+static inline long frsh_abs_time_to_nsec(frsh_abs_time_t interval)
+{
+    return fosa_abs_time_to_nsec(interval);
+}
+
 /******************************************
  * Conversion to-from POSIX timespec format
  ******************************************/