Mercurial > minori
view include/core/time.h @ 179:9c4645100fec
osx: clean up includes, we do not need cocoa
what we *do* need is the very basics that animia already depends on anyway.
these are basically guaranteed to be on any macos system, making it fairly portable
now... I haven't tested this :) I don't have a macos machine right now...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 04 Dec 2023 12:03:36 -0500 |
parents | c69230dc2b5d |
children | 862d0d8619f6 |
line wrap: on
line source
#ifndef __core__time_h #define __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 // __core__time_h