Correct way to logging elapsed time in C++
问题 I'm doing a article about GPU speed up in cluster environment To do that, I'm programming in CUDA, that is basically a c++ extension. But, as I'm a c# developer I don't know the particularities of c++. There is some concern about logging elapsed time? Some suggestion or blog to read. My initial idea is make a big loop and run the program several times. 50 ~ 100, and log every elapsed time to after make some graphics of velocity. 回答1: Standard functions such as time often have a very low