Hi,
I need to create time-stamps for my data logs. I used the following codes to derive the milliseconds as documented in the DSP/BIOS API
mTimeStamp = (CLK_getltime() * CLK_getprd()) / CLK_countspms();
I would like to verify a few things about the statement above:
1. Will mTimeStamp be reset to zero after some time? I observed in my project that mTimeStamp does reset to zero after about 15 seconds. Is there anyway to avoid this reset?
2. I need to reset mTimeStamp to zero when some particular event occurs. I tried to use CLK_start() and seems like there is no effect. Is there a way to reset/restart the clock?
3. Is the statement above the usual and correct way to compute a real-time clock in millisecond? Or is there other proper methods?
Appreciate you help. Thanks.
Chee-Beng