Mercurial > minori
diff include/core/session.h @ 221:53211cb1e7f5
library: add initial library stuff
nice
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 08 Jan 2024 13:21:08 -0500 |
parents | 975a3f0965e2 |
children | 4d461ef7d424 |
line wrap: on
line diff
--- a/include/core/session.h Mon Jan 08 11:56:09 2024 -0500 +++ b/include/core/session.h Mon Jan 08 13:21:08 2024 -0500 @@ -5,6 +5,8 @@ #include "gui/locale.h" #include <QElapsedTimer> +#include "semver/semver.hpp" + struct Session { public: Session() { timer.start(); } @@ -14,6 +16,7 @@ int uptime() { return timer.elapsed(); } Config config; + static constexpr semver::version version{0, 1, 0, semver::prerelease::alpha, 1}; private: unsigned int requests = 0;