Mercurial > minori
diff include/core/time.h @ 9:5c0397762b53
INCOMPLETE: megacommit :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 10 Sep 2023 03:59:16 -0400 |
parents | |
children | 2743011a6042 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/core/time.h Sun Sep 10 03:59:16 2023 -0400 @@ -0,0 +1,23 @@ +#ifndef __core__time_h +#define __core__time_h +#include <cstdint> +#include <string> +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(); + +}; // namespace Time +#endif // __core__time_h \ No newline at end of file