summaryrefslogtreecommitdiff
path: root/test/xa/src1/htimestampxa.c
blob: 86f5c3c037a46f04fe5698dc4e17929d843575ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 2011, 2012 Oracle and/or its affiliates.  All rights reserved.
 */

#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;
}