Update contrib.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test/defrag/perf/t_timer.cpp
18 #define __E32TEST_EXTENSION__
25 const TInt CalAttempts = 100;
27 void DefragLatency::CalibrateTimer(RTest& aTest)
32 HAL::Get(HAL::EFastCounterFrequency, iFastCounterFreq);
34 ///////////////////////////////////////////
35 for (TInt i = 0; i < CalAttempts; i++)
37 time1 = GetFastCounter();
38 time2 = GetFastCounter();
40 aTest.Printf(_L("CALIBRATION ERROR !!!!!!!!!!!!11\n"));
43 iCalDelay = val / CalAttempts;