Mercurial > minori
annotate include/core/time.h @ 64:fe719c109dbc
*: update
1. add media tracking ability, and it displays info on the `now playing` page
2. the `now playing` page now actually shows something
3. renamed every page class to be more accurate to what it is
4. ...
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 01 Oct 2023 23:15:43 -0400 |
| parents | 2743011a6042 |
| children | c69230dc2b5d |
| rev | line source |
|---|---|
| 9 | 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 | |
| 36 | 22 }; // namespace Time |
| 9 | 23 #endif // __core__time_h |
