Clk_GetTS
Get current Clock timestamp.
Files
clk.h/clk.c
Prototype
CLK_TS_SEC Clk_GetTS (void);
Arguments
None.
Returned Values
Current timestamp (in seconds, UTC+00).
Required Configuration
None.
Notes / Warnings
Clock timestamp returned as UTC+00. Thus any local time zone offset must be applied after calling Clk_GetTS()
.
Example Usage
Listing - Clk_GetTS() Example Usage
CLK_TS_SEC ts_sec; ts_sec = Clk_GetTS(); printf("timestamp = %u", ts_sec);