std::chrono and cout

后端 未结 4 781
伪装坚强ぢ
伪装坚强ぢ 2020-12-10 10:31

I have a stupid problem. I try to switch to the c++11 headers and one of those is chrono. But my problem is that I cant cout the result of time operations. For example:

4条回答
  •  半阙折子戏
    2020-12-10 10:50

    A quick google search found this page: http://en.cppreference.com/w/cpp/chrono/duration, where you can find an example of printing a duration.

    Edit: it got moved to http://en.cppreference.com/w/cpp/chrono/duration/duration_cast

提交回复
热议问题