{"id":4128,"date":"2019-07-27T12:36:37","date_gmt":"2019-07-27T04:36:37","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4128"},"modified":"2019-07-27T12:36:39","modified_gmt":"2019-07-27T04:36:39","slug":"time","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/time","title":{"rendered":"time\u547d\u4ee4 – \u6307\u4ee4\u6267\u884c\u65f6\u6240\u6d88\u8017\u7684\u65f6\u95f4"},"content":{"rendered":"\n

time\u547d\u4ee4\u7684\u7528\u9014\uff0c\u5728\u4e8e\u91cf\u6d4b\u7279\u5b9a\u6307\u4ee4\u6267\u884c\u65f6\u6240\u9700\u6d88\u8017\u7684\u65f6\u95f4\u53ca\u7cfb\u7edf\u8d44\u6e90\u7b49\u6d88\u606f\u3002 \u4f8b\u5982 CPU \u65f6\u95f4\u3001\u8bb0\u5fc6\u4f53\u3001\u8f93\u5165\u8f93\u51fa\u7b49\u7b49\u3002\u9700\u8981\u7279\u522b\u6ce8\u610f\u7684\u662f\uff0c\u90e8\u5206\u6d88\u606f\u5728 Linux \u4e0a\u663e\u793a\u4e0d\u51fa\u6765\u3002\u8fd9\u662f\u56e0\u4e3a\u5728 Linux \u4e0a\u90e8\u5206\u8d44\u6e90\u7684\u5206\u914d\u51fd\u5f0f\u4e0e time \u6307\u4ee4\u6240\u9884\u8bbe\u7684\u65b9\u5f0f\u5e76\u4e0d\u76f8\u540c\uff0c\u4ee5\u81f4\u4e8e time \u6307\u4ee4\u65e0\u6cd5\u53d6\u5f97\u8fd9\u4e9b\u8d44\u6599\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>time [\u53c2\u6570] [\u547d\u4ee4]<\/p>\n\n\n\n
-o<\/td>\u8bbe\u5b9a\u7ed3\u679c\u8f93\u51fa\u6863\u3002\u8fd9\u4e2a\u9009\u9879\u4f1a\u5c06 time \u7684\u8f93\u51fa\u5199\u5165 \u6240\u6307\u5b9a\u7684\u6863\u6848\u4e2d\u3002 <\/td><\/tr>
-a<\/td>\u914d\u5408 -o \u4f7f\u7528\uff0c\u4f1a\u5c06\u7ed3\u679c\u5199\u5230\u6863\u6848\u7684\u672b\u7aef\uff0c\u800c\u4e0d\u4f1a\u8986\u76d6\u6389\u539f\u6765\u7684\u5185\u5bb9\u3002 <\/td><\/tr>
-f FORMAT <\/td> \u4ee5 FORMAT \u5b57\u4e32\u8bbe\u5b9a\u663e\u793a\u65b9\u5f0f\u3002 <\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u663e\u793a\u547d\u4ee4date\u7684\u65f6\u95f4\u7edf\u8ba1\u7ed3\u679c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# time date   <\/pre>\n","protected":false},"excerpt":{"rendered":"

time\u547d\u4ee4\u7684\u7528\u9014\uff0c\u5728\u4e8e\u91cf\u6d4b\u7279\u5b9a\u6307\u4ee4\u6267\u884c\u65f6\u6240\u9700\u6d88\u8017\u7684\u65f6\u95f4\u53ca\u7cfb\u7edf\u8d44\u6e90\u7b49\u6d88\u606f\u3002 \u4f8b\u5982 CPU \u65f6\u95f4\u3001\u8bb0\u5fc6\u4f53\u3001\u8f93\u5165\u8f93 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4128"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4128"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4128\/revisions"}],"predecessor-version":[{"id":4418,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4128\/revisions\/4418"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}