How to Calculate Execution Time of a Code Snippet in C++
You can use this function I wrote. You call GetTimeMs64(), and it returns the number of milliseconds elapsed since the unix epoch using the system clock – the just like time(NULL), except in milliseconds. It works on both windows and linux; it is thread safe. Note that the granularity is 15 ms on windows; on … Read more