<?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 can i know the run-time. plz help me</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16863/how-can-i-know-the-run-time-plz-help-me</link><description>Hello, i study the cryption.
First, I&amp;#39;m not good at english... 
 I use keil uvision4, nrf51822, s110 softdevice
I need check the run-time.
how can i check the runtime. 
 
 like c language.... 
 start_time=clock(); 
 some functions
.
. 
 end_time</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Nov 2016 11:38:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16863/how-can-i-know-the-run-time-plz-help-me" /><item><title>RE: How can i know the run-time. plz help me</title><link>https://devzone.nordicsemi.com/thread/64575?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 11:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39546c3f-047f-495c-a3e2-f327aebe7953</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Just run any app timer using the method provided in the timer example. That will do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i know the run-time. plz help me</title><link>https://devzone.nordicsemi.com/thread/64574?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2016 11:24:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba742edc-e4e8-4c66-8978-3da87dd6b59a</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;can you share a sample code of this work around? @Lalit Kumar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i know the run-time. plz help me</title><link>https://devzone.nordicsemi.com/thread/64576?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 12:10:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80001a83-20fb-4f22-8143-66ded4b8dc98</guid><dc:creator>junny</dc:creator><description>&lt;p&gt;thank you very much&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i know the run-time. plz help me</title><link>https://devzone.nordicsemi.com/thread/64572?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 09:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58b20d14-aadc-44a8-b872-01a045673050</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;Depends of the time you want to measure, use Timer or RTC or just toggle GPIO and analyze on oscilloscope...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i know the run-time. plz help me</title><link>https://devzone.nordicsemi.com/thread/64573?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 09:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:328cba85-625a-4c0a-9724-674cbaf90e6d</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;pre&gt;&lt;code&gt;uint32_t time1;
uint32_t time2;
uint32_t time_diff;
app_timer_cnt_get(&amp;amp;time1);
{ Code }
app_timer_cnt_get(&amp;amp;time2);
app_timer_cnt_diff_compute(&amp;amp;time_diff);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If all values are zero, that means rtc is not running. A workaround is to run a dummy timer. If you are using SDK12, set APP_TIMER_KEEPS_RTC_ACTIVE to 1 in sdk_config.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i know the run-time. plz help me</title><link>https://devzone.nordicsemi.com/thread/64571?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2016 09:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79203b1a-6579-4ef9-91e4-5d6bda70081d</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;You would like to know how long was &amp;quot;some function&amp;quot; activ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>