mirror of
https://github.com/berkeleydb/libdb.git
synced 2024-11-17 01:26:25 +00:00
14 lines
226 B
C
14 lines
226 B
C
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
|
|
#include "htimestampxa.h"
|
|
|
|
void
|
|
GetTime(HTimestampData *ts)
|
|
{
|
|
struct timeval timeNow;
|
|
|
|
(void)gettimeofday(&timeNow, 0);
|
|
ts->Sec = timeNow.tv_sec;
|
|
ts->Usec = timeNow.tv_usec;
|
|
}
|