comparison 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
comparison
equal deleted inserted replaced
8:b1f73678ef61 9:5c0397762b53
1 #ifndef __core__time_h
2 #define __core__time_h
3 #include <cstdint>
4 #include <string>
5 namespace Time {
6
7 class Duration {
8 public:
9 Duration(int64_t l);
10 int64_t InSeconds();
11 int64_t InMinutes();
12 int64_t InHours();
13 int64_t InDays();
14 std::string AsRelativeString();
15
16 private:
17 int64_t length;
18 };
19
20 int64_t GetSystemTime();
21
22 }; // namespace Time
23 #endif // __core__time_h