How do you measure the execution time in milliseconds or microseconds in Windows C++?
I found many method one calling time(NULL), but it measures time in seconds only and the seconds clock() (clock_t) measure CPU time, not the actual time.
I found the function gettimeofday(Calendar time) mentioned in this paper: dropbox.com/s/k0zv8pck7ydbakz/1_7-PDF_thesis_2.pdf
This function is for Linux (compute time in milli and microseconds) and not Windows.
I found an alternative to it for Windows: dropbox.com/s/ofo99b166l7e2gf/gettimeofday.txt
And this may be relevant: https://mcmap.net/q/20897/-how-to-calculate-execution-time-of-a-code-snippet-in-c