{"id":354,"date":"2016-06-13T12:02:38","date_gmt":"2016-06-13T04:02:38","guid":{"rendered":"http:\/\/blog.hugebug.cn\/?p=354"},"modified":"2020-06-23T12:39:24","modified_gmt":"2020-06-23T04:39:24","slug":"%e4%b8%80%e4%b8%aa%e6%b5%ae%e7%82%b9%e6%95%b0%e7%9b%b8%e5%8a%a0%e4%b8%8d%e6%ad%a3%e7%a1%ae%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/blog.hugebug.cn\/?p=354","title":{"rendered":"\u4e00\u4e2a\u6d6e\u70b9\u6570\u76f8\u52a0\u4e0d\u6b63\u786e\u7684\u95ee\u9898"},"content":{"rendered":"<p>\u4eca\u5929\u9047\u5230\u4e00\u4e2a\u95ee\u9898:<\/p>\n<pre class=\"brush: php; light: false; title: c++\u4ee3\u7801; notranslate\" title=\"c++\u4ee3\u7801\">\r\n float CurTime = FApp::GetCurrentTime();\r\n UE_LOG(LogGame, Warning, TEXT(&quot;%3.2f&quot;), CurTime);\r\n CurTime += 1;\r\n UE_LOG(LogGame, Warning, TEXT(&quot;%3.2f&quot;), CurTime);\r\n<\/pre>\n<p>\u7ed3\u679c\u4e24\u4e2a\u6570\u503c\u7684\u6253\u5370 \u6709\u65f6\u76f8\u540c, \u6709\u65f6\u7ed3\u679c\u76f8\u5dee2<\/p>\n<p>\u770b\u6c47\u7f16 \u4e5f\u6ca1\u4ec0\u4e48\u95ee\u9898<\/p>\n<pre class=\"brush: php; light: false; title: \u6c47\u7f16\u4ee3\u7801; notranslate\" title=\"\u6c47\u7f16\u4ee3\u7801\">\r\n000007FEB7EB9B37 movss xmm0,dword ptr [CurTime]\r\n000007FEB7EB9B3D addss xmm0,dword ptr [__real@42c80000 (07FEB7F7BAB0h)]\r\n000007FEB7EB9B45 movss dword ptr [CurTime],xmm0\r\n<\/pre>\n<p>1\u4e2a\u5c0f\u65f6\u540e\u7684\u7ed3\u8bba\u662f: GetCurrentTime() \u8fd4\u56de\u7684\u662fdouble\u578b.<br \/>\n\u5e94\u8be5\u662f double \u8d4b\u503c\u7ed9 float \u65f6, float\u7684\u6307\u6570\u4f4d\u7528\u5b8c\u4e86,\u6240\u4ee5\u52a0\u53e6\u4e00\u4e2a\u6d6e\u70b9\u6570\u65f6, \u53ea\u53d6\u6574\u6570\u90e8\u4efd(\u5927\u4e8e1\u65f6, \u5c0f\u6570\u90e8\u5206\u8fdb1)<br \/>\n\u968f\u7740\u65f6\u95f4\u589e\u957f\uff0c\u6709\u4e00\u5929\uff0c\u8fd9\u4e2a\u7ed3\u679c\u4f1a\u662f&#8221;\u6709\u65f6\u6570\u503c\u76f8\u540c\uff0c\u6709\u65f6\u7ed3\u679c\u76f8\u5dee4&#8243;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u9047\u5230\u4e00\u4e2a\u95ee\u9898: \u7ed3\u679c\u4e24\u4e2a\u6570\u503c\u7684\u6253\u5370 \u6709\u65f6\u76f8\u540c, \u6709\u65f6\u7ed3\u679c\u76f8\u5dee2 \u770b\u6c47\u7f16 \u4e5f\u6ca1\u4ec0\u4e48\u95ee\u9898 1\u4e2a\u5c0f\u65f6\u540e\u7684\u7ed3\u8bba\u662f: GetCurrentTime() \u8fd4\u56de\u7684\u662fdouble\u578b. \u5e94\u8be5\u662f double \u8d4b\u503c\u7ed9 float \u65f6, float\u7684\u6307\u6570\u4f4d\u7528\u5b8c\u4e86,\u6240\u4ee5\u52a0\u53e6\u4e00\u4e2a\u6d6e\u70b9\u6570\u65f6, \u53ea\u53d6\u6574\u6570\u90e8\u4efd(\u5927\u4e8e1\u65f6, \u5c0f\u6570\u90e8\u5206\u8fdb1) \u968f\u7740\u65f6\u95f4\u589e\u957f\uff0c\u6709\u4e00\u5929\uff0c\u8fd9\u4e2a\u7ed3\u679c\u4f1a\u662f&#8221;\u6709\u65f6\u6570\u503c\u76f8\u540c\uff0c\u6709\u65f6\u7ed3\u679c\u76f8\u5dee4&#8243;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hugebug.cn\/index.php?rest_route=\/wp\/v2\/posts\/354"}],"collection":[{"href":"https:\/\/blog.hugebug.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hugebug.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hugebug.cn\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hugebug.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=354"}],"version-history":[{"count":9,"href":"https:\/\/blog.hugebug.cn\/index.php?rest_route=\/wp\/v2\/posts\/354\/revisions"}],"predecessor-version":[{"id":389,"href":"https:\/\/blog.hugebug.cn\/index.php?rest_route=\/wp\/v2\/posts\/354\/revisions\/389"}],"wp:attachment":[{"href":"https:\/\/blog.hugebug.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hugebug.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hugebug.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}