Diffstat (limited to 'noncore/settings/sysinfo/benchmarkinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/benchmarkinfo.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/noncore/settings/sysinfo/benchmarkinfo.cpp b/noncore/settings/sysinfo/benchmarkinfo.cpp index 3c2c15f..2a52b00 100644 --- a/noncore/settings/sysinfo/benchmarkinfo.cpp +++ b/noncore/settings/sysinfo/benchmarkinfo.cpp @@ -52,5 +52,8 @@ extern double round(double); #endif +using namespace Opie::Ui; +using namespace Opie::Core; extern "C" + { void BenchFFT( void ); @@ -176,10 +179,10 @@ void BenchmarkInfo::machineActivated( int index ) QStringList::Iterator it = results->begin(); test_alu->setText( 2, *(it++) ); - test_fpu->setText( 2, *(it++) ); + test_fpu->setText( 2, *(it++) ); test_txt->setText( 2, *(it++) ); test_gfx->setText( 2, *(it++) ); test_ram->setText( 2, *(it++) ); test_sd->setText( 2, *(it++) ); - test_cf->setText( 2, *(it++) ); + test_cf->setText( 2, *(it++) ); } @@ -260,5 +263,5 @@ int BenchmarkInfo::textRendering( int seconds ) int loops = 0; - + while ( t.elapsed() < stop ) { @@ -270,5 +273,5 @@ int BenchmarkInfo::textRendering( int seconds ) ++loops; } - + return loops * text.length(); } @@ -291,5 +294,5 @@ int BenchmarkInfo::gfxRendering( int seconds ) int stop = t.elapsed() + seconds*1000; int loops = 0; - + while ( t.elapsed() < stop ) { @@ -302,5 +305,5 @@ int BenchmarkInfo::gfxRendering( int seconds ) t.restart(); stop = t.elapsed() + seconds*1000; - + while ( t.elapsed() < stop ) { @@ -315,5 +318,5 @@ int BenchmarkInfo::gfxRendering( int seconds ) t.restart(); stop = t.elapsed() + seconds*1000; - + while ( t.elapsed() < stop ) { @@ -327,5 +330,5 @@ int BenchmarkInfo::gfxRendering( int seconds ) t.restart(); stop = t.elapsed() + seconds*1000; - + while ( t.elapsed() < stop ) { @@ -335,5 +338,5 @@ int BenchmarkInfo::gfxRendering( int seconds ) return loops; - + } |