Mercurial > minori
view include/core/time.h @ 282:19eb6c4dca78
autotools: ax_have_qt sucks, use pkgconf instead
this is particularly useful because m4_ax_have_qt really
sucked when cross compiling because of qmake
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 08 May 2024 15:54:10 -0400 |
parents | 3ec7804abf17 |
children | 91ac90a34003 |
line wrap: on
line source
#ifndef MINORI_CORE_TIME_H_ #define MINORI_CORE_TIME_H_ #include <cstdint> #include <string> 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(); }; // namespace Time #endif // MINORI_CORE_TIME_H_