annotate include/core/time.h @ 68:2417121d894e
 
*: normalize usage of layouts
before, I used them two ways, once was by setting the layout later
by using setLayout(QWidget), and the other was just using the constructor.
I find the constructor to be easier to read, so I chose that one.
 | author | 
 Paper <mrpapersonic@gmail.com> | 
 | date | 
 Mon, 02 Oct 2023 21:33:25 -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 |