summaryrefslogtreecommitdiff
path: root/src/common/time.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-21 13:00:36 +0100
committerHampusM <hampus@hampusmat.com>2022-03-21 13:00:36 +0100
commit757a29d0137b974fff6ddcc945d76e69ae120ecb (patch)
tree1fff46951e30eeae0402e99070e60901bd104eea /src/common/time.hpp
parent12e3713e7705e4353d306ae2ec03abfe8fcd5f55 (diff)
refactor: use MPU6050_light & clean up bloatHEADmaster
Diffstat (limited to 'src/common/time.hpp')
-rw-r--r--src/common/time.hpp60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/common/time.hpp b/src/common/time.hpp
deleted file mode 100644
index 8efbd28..0000000
--- a/src/common/time.hpp
+++ /dev/null
@@ -1,60 +0,0 @@
-#pragma once
-
-#include <stdint.h>
-
-constexpr double MICROS_TO_SECS = 0.000001;
-constexpr double MICROS_TO_MILLIS = 0.001;
-
-namespace common
-{
-
- /**
- * A representation of time.
- */
- class Time
- {
- public:
- /**
- * A representation of time.
- *
- * @param time_micros Time in microseconds
- */
- explicit Time(uint64_t time_micros);
-
- /**
- * Updates the time to the current time.
- */
- void update();
-
- /**
- * Returns the difference between two points in time.
- *
- * @param prev_time A previous point in time
- */
- Time diff(Time prev_time) const;
-
- /**
- * Returns the time in seconds.
- */
- double secs() const;
-
- /**
- * Returns the time in milliseconds.
- */
- double millisecs() const;
-
- /**
- * Returns the time in microseconds.
- */
- uint64_t microsecs() const;
-
- private:
- uint64_t _time_micros;
- };
-
- /**
- * Returns a time object for the time since the program started.
- */
- Time time_now();
-
-} // namespace common