Hello Everyone,
I am trying to get time from BG96 in MSECS but always I am getting constant value.
Below is the code I am trying ;
qapi_time_get_t time_info;
qapi_time_get(QAPI_TIME_MSECS, &time_info);
_log(“current time: %d”, time_info.time_msecs);
but when I am trying to get time in JULIAN it works
qapi_time_get(QAPI_TIME_JULIAN, &time_info);
_log("[time][ %04d/%02d/%02d %02d:%02d:%02d ]", time_info.time_julian.year,
time_info.time_julian.month,
time_info.time_julian.day,
time_info.time_julian.hour,
time_info.time_julian.minute,
time_info.time_julian.second);
[time][ 2020/03/07 14:08:49 ] the result I got.
Please let me know how to get the time in MSECS or is there anything like system tick, if yes please suggest how to use it.