<?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 Sync RTC with Current Time Service to generate timestamps??</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71548/how-to-sync-rtc-with-current-time-service-to-generate-timestamps</link><description>Hello, 
 I am trying to get acquire the accelerometer data every 4 hours for a sample duration of 60secs. These data are stored in RAM and on ble connection with the mobile app the data is sent to mobile over BLE. I am using Current time service to get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Feb 2021 13:30:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71548/how-to-sync-rtc-with-current-time-service-to-generate-timestamps" /><item><title>RE: How to Sync RTC with Current Time Service to generate timestamps??</title><link>https://devzone.nordicsemi.com/thread/294170?ContentTypeID=1</link><pubDate>Fri, 12 Feb 2021 13:30:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7be5f487-a682-4a66-bfb2-0fc34e0efc93</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Padmashree,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can have a look at this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/610/sample-code-for-rtc-to-update-current-time-of-device"&gt;case.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As mentioned in the case, you can for example create an app_timer that triggers an event&amp;nbsp; every 1 second and you can keep track of the time using that. Please get familiar with the app_timer. The example of how to use it can be found in most of our BLE example , we use the timer to notify the battery level every 2 seconds&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>