{"author_url":"https://blog.hatena.ne.jp/hecomi/","title":"boost::timer\u3092\u4f7f\u3063\u30661\u884c\u30b3\u30fc\u30c9\u3092\u631f\u3080\u3060\u3051\u3067\u7d4c\u904e\u6642\u9593\u8a08\u6e2c","published":"2010-07-15 01:17:14","url":"https://tips.hecomi.com/entry/20100715/1279210634","blog_url":"https://tips.hecomi.com/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftips.hecomi.com%2Fentry%2F20100715%2F1279210634\" title=\"boost::timer\u3092\u4f7f\u3063\u30661\u884c\u30b3\u30fc\u30c9\u3092\u631f\u3080\u3060\u3051\u3067\u7d4c\u904e\u6642\u9593\u8a08\u6e2c - \u51f9\u307fTips\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","width":"100%","version":"1.0","provider_url":"https://hatena.blog","image_url":null,"author_name":"hecomi","description":"boost::timer\u306fC\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306eclock()\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306b\u6642\u9593\u8a08\u6e2c\u3092\u3057\u3066\u304f\u308c\u308b\u4fbf\u5229\u306a\u30af\u30e9\u30b9\u3067\u3059\uff0e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306f\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff0e #include <iostream> #include <boost/timer.hpp> #include <windows.h> // Sleep\u7528 int main() { boost::timer t; // \u30bf\u30a4\u30de\u30fc\u306e\u958b\u59cb Sleep(1234); std::cout << t.elapsed() << \" sec\" << std::endl; // 1.234 sec t.restart(); // \u30bf\u30a4\u30de\u30fc\u306e\u30ea\u30bb\u30c3\u30c8 Slee\u2026","categories":["C++"],"provider_name":"Hatena Blog","blog_title":"\u51f9\u307fTips"}