mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
e2ceb77501
No real progress on graphics output though.
25 lines
404 B
C++
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
|