<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to calculate instruction cycles?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5995/how-to-calculate-instruction-cycles</link><description>I have an algorithm which does quite a bit of number crunching. I&amp;#39;d like to know how many clock or instruction cycles this algorithm is using. How can I get or calculate the instruction cycles?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Mar 2015 21:25:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5995/how-to-calculate-instruction-cycles" /><item><title>RE: How to calculate instruction cycles?</title><link>https://devzone.nordicsemi.com/thread/20921?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2015 21:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:868799df-cf14-4fa8-9f02-870ae6ca68e2</guid><dc:creator>Charles Manning</dc:creator><description>&lt;p&gt;With some tools and simulators it is possible to determine this theoretically.&lt;/p&gt;
&lt;p&gt;What might be better though is to just toggle a GPIO when you go into the code, then again when you come out, and use a scope to measure the execution time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>