comparison src/include/session.h @ 7:07a9095eaeed

Update Refactored some code, moved some around
author Paper <mrpapersonic@gmail.com>
date Thu, 24 Aug 2023 23:11:38 -0400
parents
children b1f73678ef61
comparison
equal deleted inserted replaced
6:1d82f6e04d7d 7:07a9095eaeed
1 #ifndef __session_h
2 #define __session_h
3 #include <QElapsedTimer>
4 #include "config.h"
5
6 struct Session {
7 Config config;
8 Session() { timer.start(); }
9 int uptime() { return timer.nsecsElapsed() / 1000; }
10
11 private: QElapsedTimer timer;
12 };
13
14 extern Session session;
15
16 #endif // __session_h