Mercurial > minori
diff src/include/time_utils.h @ 6:1d82f6e04d7d
Update: add first parts to the settings dialog
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 16 Aug 2023 00:49:17 -0400 |
parents | 23d0d9319a00 |
children |
line wrap: on
line diff
--- a/src/include/time_utils.h Sat Aug 12 13:10:34 2023 -0400 +++ b/src/include/time_utils.h Wed Aug 16 00:49:17 2023 -0400 @@ -1,20 +1,20 @@ -#ifndef __duration_h -#define __duration_h -#include <string> -#include <cstdint> -namespace Time { - class Duration { - public: - Duration(int64_t l); - int64_t InSeconds(); - int64_t InMinutes(); - int64_t InHours(); - int64_t InDays(); - std::string AsRelativeString(); - - private: - int64_t length; - }; - int64_t GetSystemTime(); -}; +#ifndef __duration_h +#define __duration_h +#include <string> +#include <cstdint> +namespace Time { + class Duration { + public: + Duration(int64_t l); + int64_t InSeconds(); + int64_t InMinutes(); + int64_t InHours(); + int64_t InDays(); + std::string AsRelativeString(); + + private: + int64_t length; + }; + int64_t GetSystemTime(); +}; #endif // __duration_h \ No newline at end of file