annotate src/include/time_utils.h @ 4:5af270662505
Set override functions as override
author |
Paper <mrpapersonic@gmail.com> |
date |
Sat, 12 Aug 2023 12:08:16 -0400 |
parents |
23d0d9319a00 |
children |
1d82f6e04d7d |
rev |
line source |
2
|
1 #ifndef __duration_h
|
|
2 #define __duration_h
|
|
3 #include <string>
|
|
4 #include <cstdint>
|
|
5 namespace Time {
|
|
6 class Duration {
|
|
7 public:
|
|
8 Duration(int64_t l);
|
|
9 int64_t InSeconds();
|
|
10 int64_t InMinutes();
|
|
11 int64_t InHours();
|
|
12 int64_t InDays();
|
|
13 std::string AsRelativeString();
|
|
14
|
|
15 private:
|
|
16 int64_t length;
|
|
17 };
|
|
18 int64_t GetSystemTime();
|
|
19 };
|
|
20 #endif // __duration_h |