Typica is a free program for professional coffee roasters. https://typica.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829
  1. /*243:*/
  2. #line 24 "./clock.w"
  3. #include <QElapsedTimer>
  4. #include <QMutex>
  5. #include <QObject>
  6. #ifndef ClockHeader
  7. #define ClockHeader
  8. class Clock:public QObject
  9. {
  10. Q_OBJECT
  11. public:
  12. Clock();
  13. ~Clock();
  14. qint64 timestamp();
  15. public slots:
  16. void setEpoch();
  17. signals:
  18. void newTime(qint64 time);
  19. private:
  20. QElapsedTimer reference;
  21. QMutex guard;
  22. };
  23. #endif
  24. /*:243*/