comparison include/core/session.h @ 48:e613772f41d5

statistics.cpp: show requests made
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Sep 2023 01:07:22 -0400
parents d8eb763e6661
children 75c804f713b2
comparison
equal deleted inserted replaced
47:d8eb763e6661 48:e613772f41d5
4 #include <QElapsedTimer> 4 #include <QElapsedTimer>
5 5
6 struct Session { 6 struct Session {
7 Config config; 7 Config config;
8 Session() { timer.start(); } 8 Session() { timer.start(); }
9 void AppendRequest() { requests++; }; 9 void IncrementRequests() { requests++; };
10 int GetRequests() { return requests; }; 10 int GetRequests() { return requests; };
11 int uptime() { return timer.elapsed(); } 11 int uptime() { return timer.elapsed(); }
12 12
13 private: 13 private:
14 int requests = 0; 14 int requests = 0;