find c++ execution time

后端 未结 6 1850
难免孤独
难免孤独 2021-01-13 09:34

I am curious if there is a build-in function in C++ for measuring the execution time? I am using Windows at the moment. In Linux it\'s pretty easy...

6条回答
  •  终归单人心
    2021-01-13 10:21

    C++ works on many platforms. Why not use something that also works on many platforms, such as the Boost libraries.

    Look at the documentation for the Boost Timer Library

    I believe that it is a header-only library, which means that it is simple to setup and use...

提交回复
热议问题