From e2b37546627e0959c14920d751275377b13739a5 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Fri, 27 Feb 2004 19:39:59 +0000 Subject: the integer test now is the official dhrystone benchmark that makes it easier to compare results --- (limited to 'noncore/settings/sysinfo/benchmarkinfo.cpp') 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 @@ -37,15 +37,17 @@ #include /* STD */ -#include #include +#include #include +#include #include "benchmarkinfo.h" extern "C" { void BenchFFT( void ); + double dhry_main( int ); } //=========================================================================== @@ -122,9 +124,8 @@ 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 ); } -- cgit v0.9.0.2