summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/benchmarkinfo.cpp
authorzecke <zecke>2004-03-14 16:01:52 (UTC)
committer zecke <zecke>2004-03-14 16:01:52 (UTC)
commitf12af18557c8f376f0c6c30e80a85737ff6c592e (patch) (side-by-side diff)
treed60806f34f4ff6af82491579e80c9ef72cd4071e /noncore/settings/sysinfo/benchmarkinfo.cpp
parent13aeeabab5f2a6262b33de83cc9559a49365e325 (diff)
downloadopie-f12af18557c8f376f0c6c30e80a85737ff6c592e.zip
opie-f12af18557c8f376f0c6c30e80a85737ff6c592e.tar.gz
opie-f12af18557c8f376f0c6c30e80a85737ff6c592e.tar.bz2
Make use of ODP
Diffstat (limited to 'noncore/settings/sysinfo/benchmarkinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/benchmarkinfo.cpp21
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
@@ -53,3 +53,6 @@ extern double round(double);
+using namespace Opie::Ui;
+using namespace Opie::Core;
extern "C"
+
{
@@ -177,3 +180,3 @@ void BenchmarkInfo::machineActivated( int index )
test_alu->setText( 2, *(it++) );
- test_fpu->setText( 2, *(it++) );
+ test_fpu->setText( 2, *(it++) );
test_txt->setText( 2, *(it++) );
@@ -182,3 +185,3 @@ void BenchmarkInfo::machineActivated( int index )
test_sd->setText( 2, *(it++) );
- test_cf->setText( 2, *(it++) );
+ test_cf->setText( 2, *(it++) );
}
@@ -261,3 +264,3 @@ int BenchmarkInfo::textRendering( int seconds )
int loops = 0;
-
+
while ( t.elapsed() < stop )
@@ -271,3 +274,3 @@ int BenchmarkInfo::textRendering( int seconds )
}
-
+
return loops * text.length();
@@ -292,3 +295,3 @@ int BenchmarkInfo::gfxRendering( int seconds )
int loops = 0;
-
+
while ( t.elapsed() < stop )
@@ -303,3 +306,3 @@ int BenchmarkInfo::gfxRendering( int seconds )
stop = t.elapsed() + seconds*1000;
-
+
while ( t.elapsed() < stop )
@@ -316,3 +319,3 @@ int BenchmarkInfo::gfxRendering( int seconds )
stop = t.elapsed() + seconds*1000;
-
+
while ( t.elapsed() < stop )
@@ -328,3 +331,3 @@ int BenchmarkInfo::gfxRendering( int seconds )
stop = t.elapsed() + seconds*1000;
-
+
while ( t.elapsed() < stop )
@@ -336,3 +339,3 @@ int BenchmarkInfo::gfxRendering( int seconds )
return loops;
-
+
}