{"id":378,"date":"2011-07-18T11:46:14","date_gmt":"2011-07-18T11:46:14","guid":{"rendered":"https:\/\/blogs.mathworks.com\/steve\/2011\/07\/18\/measuring-elapsed-time-in-matlab\/"},"modified":"2017-06-07T22:26:44","modified_gmt":"2017-06-08T02:26:44","slug":"measuring-elapsed-time-in-matlab","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/steve\/2011\/07\/18\/measuring-elapsed-time-in-matlab\/","title":{"rendered":"Measuring elapsed time in MATLAB"},"content":{"rendered":"<p>\r\nThe July 2011 issue of MATLAB Digest is out, and an <a href=\"https:\/\/www.mathworks.com\/company\/newsletters\/articles\/improvements-to-tic-and-toc-functions-for-measuring-absolute-elapsed-time-performance-in-matlab.html\">article by Martin Knapp-Cordes and Bill McKeeman<\/a> caught my eye. It describes improvements to the MATLAB tic and toc functions. It also describes some general principles and specific techniques associated with trying to measure elapsed time in standard seconds on a computer. It turns out to be surprisingly difficult.\r\n<\/p>\r\n\r\nSee also <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/18510-matlab-performance-measurement\">Bill's article<\/a> on the File Exchange about performance measurement, as well as my timeit function for measuring the speed of a particular MATLAB operation.\r\n","protected":false},"excerpt":{"rendered":"<p>\r\nThe July 2011 issue of MATLAB Digest is out, and an article by Martin Knapp-Cordes and Bill McKeeman caught my eye. It describes improvements to the MATLAB tic and toc functions. It also describes... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/steve\/2011\/07\/18\/measuring-elapsed-time-in-matlab\/\">read more >><\/a><\/p>","protected":false},"author":42,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/378"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/comments?post=378"}],"version-history":[{"count":2,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/378\/revisions"}],"predecessor-version":[{"id":2628,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/posts\/378\/revisions\/2628"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/media?parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/categories?post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/steve\/wp-json\/wp\/v2\/tags?post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}