summaryrefslogtreecommitdiff
path: root/src/utils/time.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-15 12:33:52 +0100
committerHampusM <hampus@hampusmat.com>2022-02-15 12:33:52 +0100
commitbcdce9633dc351d3bc7f347a165348b8fab87cd9 (patch)
tree88c2f5d8f0c5fac2bca28e4b543e5209f3bc98fb /src/utils/time.hpp
parent917adc6a2b6b166e37fc3d4f94b41488f0c245a5 (diff)
refactor: reorganize files & improve classes
Diffstat (limited to 'src/utils/time.hpp')
-rw-r--r--src/utils/time.hpp52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/utils/time.hpp b/src/utils/time.hpp
deleted file mode 100644
index 1577bb7..0000000
--- a/src/utils/time.hpp
+++ /dev/null
@@ -1,52 +0,0 @@
-#pragma once
-
-#include <stdint.h>
-
-/**
- * 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);
-
- /**
- * Returns the time in seconds.
- */
- double secs();
-
- /**
- * Returns the time in milliseconds.
- */
- double millisecs();
-
- /**
- * Returns the time in microseconds.
- */
- uint64_t microsecs();
-
-private:
- uint64_t _time_micros;
-};
-
-/**
- * Returns a time object for the time since the program started.
- */
-Time time_now();