Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
7:07a9095eaeed | 8:b1f73678ef61 |
---|---|
4 #include "config.h" | 4 #include "config.h" |
5 | 5 |
6 struct Session { | 6 struct Session { |
7 Config config; | 7 Config config; |
8 Session() { timer.start(); } | 8 Session() { timer.start(); } |
9 int uptime() { return timer.nsecsElapsed() / 1000; } | 9 int uptime() { return timer.elapsed(); } |
10 | 10 |
11 private: QElapsedTimer timer; | 11 private: QElapsedTimer timer; |
12 }; | 12 }; |
13 | 13 |
14 extern Session session; | 14 extern Session session; |