c++ Programming Glossary: diff_result
::std::vector::at() vs operator[] << surprising results!! 5 to 10 times slower/faster! http://stackoverflow.com/questions/3269809/stdvectorat-vs-operator-surprising-results-5-to-10-times-slower-f ELEMENTS_IN_VECTOR 1000000 int main __int64 freq start end diff_Result if QueryPerformanceFrequency LARGE_INTEGER freq throw Not supported.. i xyz vec.at i QueryPerformanceCounter LARGE_INTEGER end diff_Result end start freq printf Result t t u n n diff_Result printf Press.. end diff_Result end start freq printf Result t t u n n diff_Result printf Press any key to start _getch printf Running speed test....
|