view include/core/session.h @ 9:5c0397762b53

INCOMPLETE: megacommit :)
author Paper <mrpapersonic@gmail.com>
date Sun, 10 Sep 2023 03:59:16 -0400
parents
children 4b198a111713
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(); }
		int uptime() { return timer.elapsed(); }

	private:
		QElapsedTimer timer;
};

extern Session session;

#endif // __core__session_h