author | mickeyl <mickeyl> | 2004-02-27 19:39:59 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-02-27 19:39:59 (UTC) |
commit | e2b37546627e0959c14920d751275377b13739a5 (patch) (side-by-side diff) | |
tree | b2bc189227928f93c5194348d39a48a29e4f7f05 /noncore/settings/sysinfo/benchmarkinfo.cpp | |
parent | 069a15dcec8054ce2d8436a2961bd05cf2fffcd5 (diff) | |
download | opie-e2b37546627e0959c14920d751275377b13739a5.zip opie-e2b37546627e0959c14920d751275377b13739a5.tar.gz opie-e2b37546627e0959c14920d751275377b13739a5.tar.bz2 |
the integer test now is the official dhrystone benchmark
that makes it easier to compare results
Diffstat (limited to 'noncore/settings/sysinfo/benchmarkinfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/benchmarkinfo.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/settings/sysinfo/benchmarkinfo.cpp b/noncore/settings/sysinfo/benchmarkinfo.cpp index 62146f7..1d0b140 100644 --- a/noncore/settings/sysinfo/benchmarkinfo.cpp +++ b/noncore/settings/sysinfo/benchmarkinfo.cpp @@ -38,7 +38,8 @@ /* STD */ -#include <stdio.h> #include <time.h> +#include <stdio.h> #include <stdlib.h> +#include <math.h> #include "benchmarkinfo.h" @@ -47,4 +48,5 @@ extern "C" { void BenchFFT( void ); + double dhry_main( int ); } @@ -123,7 +125,6 @@ void BenchmarkInfo::run() if ( test_alu->isOn() ) { - t.start(); - benchInteger(); - test_alu->setText( 1, QString( "%1 secs" ).arg( QString::number( t.elapsed() / 1000.0 ) ) ); + int d = round( dhry_main( DHRYSTONE_RUNS ) ); + test_alu->setText( 1, QString( "%1 DHRYS" ).arg( QString::number( d ) ) ); test_alu->setOn( false ); } |