1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-27 17:29:38 +00:00
CLK/OSBindings/Qt/timer.h
Thomas Harte e2ceb77501 Attempts to start updating a started machine.
No real progress on graphics output though.
2020-06-03 00:21:37 -04:00

25 lines
404 B
C++

#ifndef TIMER_H
#define TIMER_H
#include <QObject>
#include "../../Machines/Utility/MachineForTarget.hpp"
class Timer : public QObject
{
Q_OBJECT
public:
explicit Timer(QObject *parent = nullptr);
void setMachine(MachineTypes::TimedMachine *machine);
public slots:
void tick();
private:
MachineTypes::TimedMachine *machine = nullptr;
int64_t lastTickNanos = 0;
};
#endif // TIMER_H