Dialog Semiconductor customer support - timestamp time wakeup https://support.dialog-semiconductor.com/resource-keywords/timestamp-time-wakeup en 开始时间? https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/getting-time-start

Hi,
we are using DA14580 SDK 5.0.4.
We need a way to get a global timestamp since start in seconds.
The easy way is to set a timer to run every minute and increase a counter by 60 - and getting an inaccurate measurement (accuracy of minutes).
What if we need the timestamp in accuracy of seconds? Do we need to wake up every second?
Is there some register\memory-address to just read a timestamp (in some units)?
If we just woke up from a timer this would be easy - if the timer is X seconds we would increase the counter by X every time we wake up.
However, we also wake up from a button, and need to get the timestamp.

I see that the systick timer has a a systick_value() function to get the amount of time left, but the systick timer is not recommended for use.
Do the app_easy_timers have a similar "value" function? Getting the amount of time left? This could solve my problem - create a repeating 5 minutes timer to increase a counter, and whenever the button is clicked get the current time from: counter * 5minutes + (5minutes - time_left_to_timer).

Regards,
Oren

Device: 
Fri, 21 Jul 2017 18:54:18 +0000 oren 70464 at https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/getting-time-start#comments