Mercurial > minori
view include/core/session.h @ 47:d8eb763e6661
information.cpp: add widgets to the list tab, and add an
"optional date" widget like taiga has so users can specify whether to
set the date or not
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 25 Sep 2023 00:43:38 -0400 |
parents | 4b198a111713 |
children | e613772f41d5 |
line wrap: on
line source
#ifndef __core__session_h #define __core__session_h #include "core/config.h" #include <QElapsedTimer> struct Session { Config config; Session() { timer.start(); } void AppendRequest() { requests++; }; int GetRequests() { return requests; }; int uptime() { return timer.elapsed(); } private: int requests = 0; QElapsedTimer timer; }; extern Session session; #endif // __core__session_h