diff src/include/time_utils.h @ 2:23d0d9319a00

Update Also converted everything to LF from CRLF
author Paper <mrpapersonic@gmail.com>
date Sat, 12 Aug 2023 03:16:26 -0400
parents
children 1d82f6e04d7d
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/include/time_utils.h	Sat Aug 12 03:16:26 2023 -0400
@@ -0,0 +1,20 @@
+#ifndef __duration_h
+#define __duration_h
+#include <string>
+#include <cstdint>
+namespace Time {
+	class Duration {
+		public:
+			Duration(int64_t l);
+			int64_t InSeconds();
+			int64_t InMinutes();
+			int64_t InHours();
+			int64_t InDays();
+			std::string AsRelativeString();
+
+		private:
+			int64_t length;
+	};
+	int64_t GetSystemTime();
+};
+#endif // __duration_h
\ No newline at end of file