summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/benchmarkinfo.h
Unidiff
Diffstat (limited to 'noncore/settings/sysinfo/benchmarkinfo.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/sysinfo/benchmarkinfo.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/noncore/settings/sysinfo/benchmarkinfo.h b/noncore/settings/sysinfo/benchmarkinfo.h
index 2d994b4..55398eb 100644
--- a/noncore/settings/sysinfo/benchmarkinfo.h
+++ b/noncore/settings/sysinfo/benchmarkinfo.h
@@ -15,33 +15,24 @@
15** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 15** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16** 16**
17**********************************************************************/ 17**********************************************************************/
18 18
19#include <qwidget.h> 19#include <qwidget.h>
20#include <qdialog.h> 20#include <qdialog.h>
21 21
22class QClipboard; 22class QClipboard;
23class QCheckListItem; 23class QCheckListItem;
24class QPushButton; 24class QPushButton;
25class QListView; 25class QListView;
26 26
27//#define INT_TEST_ITERATIONS 50
28//#define CHAR_TEST_ITERATIONS 15000
29//#define DRAW_TEST_ITERATIONS 5000
30
31#define INT_TEST_ITERATIONS 50
32#define DHRYSTONE_RUNS 20000000
33#define CHAR_TEST_ITERATIONS 15000
34#define DRAW_TEST_ITERATIONS 5000
35
36class BenchmarkInfo : public QWidget 27class BenchmarkInfo : public QWidget
37{ 28{
38 Q_OBJECT 29 Q_OBJECT
39 30
40public: 31public:
41 BenchmarkInfo( QWidget *parent = 0, const char *name = 0, int wFlags = 0 ); 32 BenchmarkInfo( QWidget *parent = 0, const char *name = 0, int wFlags = 0 );
42 ~BenchmarkInfo(); 33 ~BenchmarkInfo();
43 34
44 QCheckListItem* test_alu; 35 QCheckListItem* test_alu;
45 QCheckListItem* test_fpu; 36 QCheckListItem* test_fpu;
46 QCheckListItem* test_txt; 37 QCheckListItem* test_txt;
47 QCheckListItem* test_gfx; 38 QCheckListItem* test_gfx;
@@ -52,22 +43,21 @@ public:
52 bool main_rd; 43 bool main_rd;
53 bool main_wt; 44 bool main_wt;
54 bool sd_rd; 45 bool sd_rd;
55 bool sd_wt; 46 bool sd_wt;
56 bool cf_rd; 47 bool cf_rd;
57 bool cf_wt; 48 bool cf_wt;
58 49
59 QClipboard* clb; 50 QClipboard* clb;
60 51
61 QListView* tests; 52 QListView* tests;
62 QPushButton* startButton; 53 QPushButton* startButton;
63 54
64 void benchInteger() const; 55 int textRendering( int );
65 void paintChar(); 56 int gfxRendering( int );
66 void paintLineRect();
67 bool writeFile( const QString& ); 57 bool writeFile( const QString& );
68 bool readFile( const QString& ); 58 bool readFile( const QString& );
69 59
70private slots: 60private slots:
71 void run(); 61 void run();
72 62
73}; 63};