comparison include/core/session.h @ 51:75c804f713b2

window: add about window, *: use tr() when applicable (useful for i18n)
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Sep 2023 20:29:26 -0400
parents e613772f41d5
children c69230dc2b5d
comparison
equal deleted inserted replaced
50:10868c3fb2be 51:75c804f713b2
2 #define __core__session_h 2 #define __core__session_h
3 #include "core/config.h" 3 #include "core/config.h"
4 #include <QElapsedTimer> 4 #include <QElapsedTimer>
5 5
6 struct Session { 6 struct Session {
7 public:
7 Config config; 8 Config config;
8 Session() { timer.start(); } 9 Session() { timer.start(); }
10 /* we literally *cannot* be lying to the user by doing this */
9 void IncrementRequests() { requests++; }; 11 void IncrementRequests() { requests++; };
10 int GetRequests() { return requests; }; 12 int GetRequests() { return requests; };
11 int uptime() { return timer.elapsed(); } 13 int uptime() { return timer.elapsed(); }
12 14
13 private: 15 private: