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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
1 #ifndef __duration_h
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
2 #define __duration_h
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
3 #include <string>
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
4 #include <cstdint>
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
5 namespace Time {
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
6 class Duration {
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
7 public:
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
8 Duration(int64_t l);
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
9 int64_t InSeconds();
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
10 int64_t InMinutes();
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
11 int64_t InHours();
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
12 int64_t InDays();
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
13 std::string AsRelativeString();
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
14
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
15 private:
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
16 int64_t length;
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
17 };
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
18 int64_t GetSystemTime();
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
19 };
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
20 #endif // __duration_h