search

Home  >  Q&A  >  body text

gtest - google c++ test framework 怎么把测试的时间精度提高? 默认是ms.

google c++ test framework 怎么把测试的时间精度提高? 默认是ms.

迷茫迷茫2807 days ago760

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-17 11:47:01

    Write the measurement function yourself.

    Just saw this article: http://segmentfault.com/blog/pezy/1190000002548499, it may be helpful to you.


    You can also refer to the method in GTest source code:

    https://github.com/adobe/chromium/blob/master/base/time_win_unittest.cc

    reply
    0
  • Cancelreply