1#include <sys/types.h> 2#include <sys/time.h> 3 4#include "htimestampxa.h" 5 6void 7GetTime(HTimestampData *ts) 8{ 9 struct timeval timeNow; 10 11 (void)gettimeofday(&timeNow, 0); 12 ts->Sec = timeNow.tv_sec; 13 ts->Usec = timeNow.tv_usec; 14} 15