Mercurial > minori
view src/include/session.h @ 8:b1f73678ef61
update
text paragraphs are now their own objects, as they should be
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 26 Aug 2023 03:39:34 -0400 |
parents | 07a9095eaeed |
children |
line wrap: on
line source
#ifndef __session_h #define __session_h #include <QElapsedTimer> #include "config.h" struct Session { Config config; Session() { timer.start(); } int uptime() { return timer.elapsed(); } private: QElapsedTimer timer; }; extern Session session; #endif // __session_h