--- a/kerneltest/e32test/bench/t_r64bm.cpp Thu Aug 19 11:14:22 2010 +0300
+++ b/kerneltest/e32test/bench/t_r64bm.cpp Tue Aug 31 16:34:26 2010 +0300
@@ -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,9 +58,10 @@
}
thread.Resume();
User::After(1000000);
- count=0;
+ TUint initial = Count;
User::After(KAverageOverInSeconds*1000000);
- TUint64 result = count;
+ TUint final = Count;
+ TUint64 result = TUint64(final - initial);
result *= TUint64(KNumberOfCalculationsPerLoop);
result /= TUint64(KAverageOverInSeconds);
TUint r32 = (TUint)result;