--- a/kerneltest/e32test/bench/t_r64bm.cpp Tue Aug 31 16:34:26 2010 +0300
+++ b/kerneltest/e32test/bench/t_r64bm.cpp Wed Sep 01 12:34:56 2010 +0100
@@ -26,7 +26,7 @@
const TInt KAverageOverInSeconds=10;
const TInt KNumberOfCalculationsPerLoop=10;
-volatile TUint Count;
+volatile TUint count;
#ifdef T_R64BM_WITH_VFP
RTest test(_L("T_VFPBM"));
#else
@@ -58,10 +58,9 @@
}
thread.Resume();
User::After(1000000);
- TUint initial = Count;
+ count=0;
User::After(KAverageOverInSeconds*1000000);
- TUint final = Count;
- TUint64 result = TUint64(final - initial);
+ TUint64 result = count;
result *= TUint64(KNumberOfCalculationsPerLoop);
result /= TUint64(KAverageOverInSeconds);
TUint r32 = (TUint)result;