{"id":2563,"date":"2015-02-23T20:17:47","date_gmt":"2015-02-23T19:17:47","guid":{"rendered":"http:\/\/michlstechblog.info\/blog\/?p=2563"},"modified":"2015-02-25T16:23:53","modified_gmt":"2015-02-25T15:23:53","slug":"windows-equivalent-to-linux-time-command","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-equivalent-to-linux-time-command\/","title":{"rendered":"Windows: Equivalent to linux time command"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_2563 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_2563')){$('.twoclick_social_bookmarks_post_2563').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Equivalent%20to%20linux%20time%20command\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Athe%20time%20command%20in%20Windows%20gets%20or%20sets%20the%20system%20time.%20If%20you%20need%20an%20equivalent%20to%20the%20linux%20time%20command%20-%20which%20measure%20the%20execution%20time%20of%20a%20given%20command%20-%20you%20can%20use%20the%20powershell%20commandlet%20Measure-Command.%20Limitation%20is%20that%20only%20the%20time%20can%20measure%20how%20long%20the%20command%20execution%20runs%2C%20not%20splited%20into%20user%2C%20system%20and%20realtime.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-equivalent-to-linux-time-command\\\/\",\"post_id\":2563,\"post_title_referrer_track\":\"Windows%3A+Equivalent+to+linux+time+command\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>the time command in Windows gets or sets the system time. If you need an equivalent to the linux time command &#8211; which measure the execution time of a given command &#8211; you can use the powershell commandlet Measure-Command. Limitation is that only the time can measure how long the command execution runs, not splited into user, system and realtime.<br \/>\n<!--more--><\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nMeasure-Command {start-process yourCommand.exe -argumentlist &quot;argument1 argument2&quot; -wait}\r\nDays              : 0\r\nHours             : 0\r\nMinutes           : 0\r\nSeconds           : 4\r\nMilliseconds      : 709\r\nTicks             : 47093374\r\nTotalDays         : 5,45062199074074E-05\r\nTotalHours        : 0,00130814927777778\r\nTotalMinutes      : 0,0784889566666667\r\nTotalSeconds      : 4,7093374\r\nTotalMilliseconds : 4709,3374\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, the time command in Windows gets or sets the system time. If you need an equivalent to the linux time command &#8211; which measure the execution time of a given command &#8211; you can use the powershell commandlet Measure-Command. Limitation is that only the time can measure how long the command execution runs, not &hellip; <a href=\"https:\/\/michlstechblog.info\/blog\/windows-equivalent-to-linux-time-command\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Windows: Equivalent to linux time command<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[344,5],"tags":[617,20],"class_list":["post-2563","post","type-post","status-publish","format-standard","hentry","category-powershell-scripting","category-windowsknowhow","tag-linux-time-command","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/2563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=2563"}],"version-history":[{"count":3,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/2563\/revisions"}],"predecessor-version":[{"id":2588,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/2563\/revisions\/2588"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=2563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=2563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=2563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}