From 7892ef9d248c189be68ce7faf63230ec0a318b67 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 14 Feb 2022 10:11:32 +0100 Subject: refactor: reorganize & add debugging --- src/time_utils.hpp | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 src/time_utils.hpp (limited to 'src/time_utils.hpp') diff --git a/src/time_utils.hpp b/src/time_utils.hpp deleted file mode 100644 index f8f2eb3..0000000 --- a/src/time_utils.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef TIME_UTILS_HPP -#define TIME_UTILS_HPP - -/** - * A representation of time. - */ -class Time -{ -public: - /** - * A representation of time. - * - * @param time_micros Time in microseconds - */ - Time(unsigned long 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. - */ - float secs(); - - /** - * Returns the time in milliseconds. - */ - unsigned long millisecs(); - - /** - * Returns the time in microseconds. - */ - unsigned long microsecs(); - -private: - unsigned long _time_micros; -}; - -/** - * Returns a time object for the time since the program started. - */ -Time time_now(); - -#endif -- cgit v1.2.3-18-g5258