//+------------------------------------------------------------------------ // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1993. // // File: bm_iid.cxx // // Contents: compare inline vs function call for guid compares // // Classes: CGuidCompareTest // // History: 1-July-93 t-martig Created // //-------------------------------------------------------------------------- #include #pragma hdrstop #include #include TCHAR *CGuidCompareTest::Name () { return TEXT("GuidCompare"); } SCODE CGuidCompareTest::Setup (CTestInput *pInput) { CTestBase::Setup(pInput); // get iteration count m_ulIterations = pInput->GetIterations(Name()); // initialize state INIT_RESULTS(m_ulRepFunctionNEQTime); INIT_RESULTS(m_ulRepFunctionEQTime); INIT_RESULTS(m_ulRepInlineNEQTime); INIT_RESULTS(m_ulRepInlineEQTime); return S_OK; } SCODE CGuidCompareTest::Cleanup () { return S_OK; } SCODE CGuidCompareTest::Run () { CStopWatch sw; BOOL fRslt; // compute times for the function version for (ULONG iIter=0; iIter