ad timer to update tool 60min max / 30min per Step
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <QMap>
|
||||
#include <QDebug>
|
||||
#include <QThread>
|
||||
#include <QElapsedTimer>
|
||||
|
||||
#include <optional>
|
||||
#include <initializer_list>
|
||||
@@ -19,6 +20,7 @@
|
||||
#include "ismas/ismas_client.h"
|
||||
#include "utils.h"
|
||||
|
||||
|
||||
#ifdef PTU5
|
||||
#define SERIAL_PORT "ttymxc2"
|
||||
#else
|
||||
@@ -141,6 +143,14 @@ class hwinf;
|
||||
class Worker : public QThread{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
static constexpr qint64 UPDATE_MAX_RUNTIME_MS =
|
||||
60LL * 60LL * 1000LL; // 60 minutes
|
||||
|
||||
QElapsedTimer m_updateRuntime;
|
||||
|
||||
public:
|
||||
bool updateTimedOut() const;
|
||||
int const m_customerNr;
|
||||
QString const m_customerNrStr;
|
||||
int const m_machineNr;
|
||||
|
||||
Reference in New Issue
Block a user