Clickutilgettimestamp – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual
Page 189
188
APPENDIX • CLICK 500 DEVELOPER GUIDE
ClickUtilGetTimeStamp
Reads the SEC_TIMER and MS_TIMER to create a size-byte timestamp. The first four bytes
of the time stamp are the number of seconds since the start of January 1, 1980. The last
two bytes form a 16-bit value that represent the number of milliseconds within the current
second.
If the sensor RTC is updated using the function write_rtc, then SEC_TIMER, MS_TIMER,
and the value returned by read_rtc will no longer be in sync, until the Click 500 is restarted.
˽
LIBRARY – click500util.LIB
˽
SYNTAX –
void ClickUtilGetTimeStamp(unsigned char* timestampArray);
˽
PARAMETER – A pointer to the start of the 6-byte field where the timestamp should
be written to.
This manual is related to the following products: