aboutsummaryrefslogtreecommitdiff
path: root/Tools/tests-host/hrt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/tests-host/hrt.cpp')
-rw-r--r--Tools/tests-host/hrt.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/Tools/tests-host/hrt.cpp b/Tools/tests-host/hrt.cpp
deleted file mode 100644
index 01b5958b7..000000000
--- a/Tools/tests-host/hrt.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <sys/time.h>
-#include <inttypes.h>
-#include <drivers/drv_hrt.h>
-#include <stdio.h>
-
-hrt_abstime hrt_absolute_time() {
- struct timeval te;
- gettimeofday(&te, NULL); // get current time
- hrt_abstime us = static_cast<uint64_t>(te.tv_sec) * 1e6 + te.tv_usec; // caculate us
- return us;
-}
-
-hrt_abstime hrt_elapsed_time(const volatile hrt_abstime *then) {
- // not thread safe
- return hrt_absolute_time() - *then;
-}