mirror of
https://github.com/berkeleydb/libdb.git
synced 2024-11-16 17:16:25 +00:00
15 lines
226 B
C
15 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;
|
||
|
}
|