benchmarkdialog.h 601 B

1234567891011121314151617181920212223242526272829
  1. #ifndef BENCHMARKDIALOG_H
  2. #define BENCHMARKDIALOG_H
  3. #include <QDialog>
  4. #include <functional>
  5. #include "ui_benchmarks.h"
  6. #include "Generators.h"
  7. class BenchmarkDialog : public QDialog
  8. {
  9. Q_OBJECT
  10. private:
  11. Ui::BenchmarkDialog ui;
  12. public:
  13. explicit BenchmarkDialog(QWidget *parent = nullptr);
  14. MandelViewport benchViewport(void) const;
  15. double measureMips(const std::function<Bitmap<float>()>& bench) const;
  16. QString benchmarkResult(MandelGenerator& mg, int size, int iters) const;
  17. signals:
  18. public slots:
  19. private slots:
  20. void on_run_clicked();
  21. };
  22. #endif // BENCHMARKDIALOG_H