annotate 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 |
|
rev |
line source |
7
|
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(); }
|
8
|
9 int uptime() { return timer.elapsed(); }
|
7
|
10
|
|
11 private: QElapsedTimer timer;
|
|
12 };
|
|
13
|
|
14 extern Session session;
|
|
15
|
|
16 #endif // __session_h |