summaryrefslogtreecommitdiffstats
path: root/pcilib/timing.h
diff options
context:
space:
mode:
Diffstat (limited to 'pcilib/timing.h')
-rw-r--r--pcilib/timing.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/pcilib/timing.h b/pcilib/timing.h
new file mode 100644
index 0000000..630df44
--- /dev/null
+++ b/pcilib/timing.h
@@ -0,0 +1,25 @@
+#ifndef _PCILIB_TIMING_H
+#define _PCILIB_TIMING_H
+
+#include <sys/time.h>
+#include <pcilib.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int pcilib_add_timeout(struct timeval *tv, pcilib_timeout_t timeout);
+int pcilib_calc_deadline(struct timeval *tv, pcilib_timeout_t timeout);
+int pcilib_check_deadline(struct timeval *tve, pcilib_timeout_t timeout);
+pcilib_timeout_t pcilib_calc_time_to_deadline(struct timeval *tve);
+int pcilib_sleep_until_deadline(struct timeval *tv);
+int pcilib_timecmp(struct timeval *tv1, struct timeval *tv2);
+pcilib_timeout_t pcilib_timediff(struct timeval *tve, struct timeval *tvs);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* _PCILIB_TIMING_H */