annotate include/core/time.h @ 75:d3e9310598b1
*: refactor some stuff
text: "TextParagraph"s are now called sections, because that's the
actual word for it :P
text: new classes: Line and OneLineSection, solves many problems with
paragraphs that are only one line long (ex. going out of bounds)
http: reworked http stuff to allow threaded get requests, also moved it
to its own file to (hopefully) remove clutter
eventually I'll make a threaded post request method and use that in
the "basic" function
author |
Paper <mrpapersonic@gmail.com> |
date |
Wed, 04 Oct 2023 01:42:30 -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 |