{"id":44884,"date":"2015-05-12T07:00:00","date_gmt":"2015-05-12T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2015\/05\/12\/how-does-task-manager-compute-up-time-and-why-doesnt-it-agree-with-gettickcount\/"},"modified":"2015-05-12T07:00:00","modified_gmt":"2015-05-12T07:00:00","slug":"how-does-task-manager-compute-up-time-and-why-doesnt-it-agree-with-gettickcount","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20150512-00\/?p=44884","title":{"rendered":"How does Task Manager compute Up Time, and why doesn&#039;t it agree with GetTickCount?"},"content":{"rendered":"<p>Task Manager shows a piece of information called &#8220;Up time&#8221;. How is this value calculated, and why doesn&#8217;t it agree with the value reported by <code>Get&shy;Tick&shy;Count<\/code>\/<code>Get&shy;Tick&shy;Count64<\/code>? \n Task Manager calculates &#8220;up time&#8221; by subtracting the system boot time from the current time. In other words, it is misnamed; it really should be called <i>time since system was started<\/i>. It doesn&#8217;t subtract out the time when the computer was in sleep or hibernation.<\/p>\n<p> The tick count, on the other hand, counts only time that elapses while the computer is on. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Task Manager shows a piece of information called &#8220;Up time&#8221;. How is this value calculated, and why doesn&#8217;t it agree with the value reported by Get&shy;Tick&shy;Count\/Get&shy;Tick&shy;Count64? Task Manager calculates &#8220;up time&#8221; by subtracting the system boot time from the current time. In other words, it is misnamed; it really should be called time since system [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-44884","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>Task Manager shows a piece of information called &#8220;Up time&#8221;. How is this value calculated, and why doesn&#8217;t it agree with the value reported by Get&shy;Tick&shy;Count\/Get&shy;Tick&shy;Count64? Task Manager calculates &#8220;up time&#8221; by subtracting the system boot time from the current time. In other words, it is misnamed; it really should be called time since system [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/44884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=44884"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/44884\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=44884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=44884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=44884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}