mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 16:32:33 +02:00
Add auto exit when using --benchmark
Maybe we should exit after we created the ScreenPlay app. Depends on what kind of benchmark we use in the future.
This commit is contained in:
parent
d5ff21725a
commit
206203fba0
@ -62,6 +62,11 @@ int main(int argc, char* argv[])
|
||||
QFile metricsFile { QGuiApplication::applicationDirPath() + "/metrics.txt" };
|
||||
if (metricsFile.exists())
|
||||
qInfo() << "Removing old Continuous Integration Metrics Timer: " << metricsFile.remove();
|
||||
|
||||
QTimer::singleShot(10000, []() {
|
||||
qInfo() << "Exit ScreenPlay benchmark mode!";
|
||||
QGuiApplication::quit();
|
||||
});
|
||||
}
|
||||
|
||||
// Unit tests
|
||||
|
Loading…
Reference in New Issue
Block a user