Global Mapper SDK
GM_GPSGetTimeEx
Retrieves the UTC time of the last GPS fix along with optionally any fractions of a second with the time. Most device will report positions every second so this would be 0.0 for most devices, but some high-frequency reporting devices will provide updates multiple times a second, in which case the fractional seconds value will be non-zero. Will return GM_Error_GPSDataNotValid if there if either we are not tracking a GPS device or the time is not known.
Syntax
C++
Copy
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_GPSGetTimeEx
(
time_t* aFixTime, // out: fix time
double* aFractionalSeconds // out: fractional seconds to add to fix time
);