Skip to content

Commit

Permalink
Moved both timing measures into window.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
berndporr committed Feb 11, 2024
1 parent 51e2f01 commit 6b01141
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ int main(int argc, char *argv[])
Window window;
window.show();

// call the window.timerEvent function every 40 ms
window.startTimer(40);

// execute the application
return app.exec();
}
5 changes: 4 additions & 1 deletion window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ Window::Window()

setLayout(hLayout);

fakeSensor.startms(5);
// a fake data sample every 10ms
fakeSensor.startms(10);
// Screen refresh every 40ms
startTimer(40);
}

Window::~Window() {
Expand Down

0 comments on commit 6b01141

Please sign in to comment.