#include "c.h"
#include <sys/time.h>
Go to the source code of this file.
◆ FILETIME_UNITS_PER_SEC
#define FILETIME_UNITS_PER_SEC 10000000L |
◆ FILETIME_UNITS_PER_USEC
#define FILETIME_UNITS_PER_USEC 10 |
◆ PgGetSystemTimeFn
typedef VOID(WINAPI * PgGetSystemTimeFn) (LPFILETIME) |
◆ gettimeofday()
int gettimeofday |
( |
struct timeval * |
tp, |
|
|
struct timezone * |
tzp |
|
) |
| |
Definition at line 104 of file gettimeofday.c.
107 ULARGE_INTEGER ularge;
109 (*pg_get_system_time) (&file_time);
110 ularge.LowPart = file_time.dwLowDateTime;
111 ularge.HighPart = file_time.dwHighDateTime;
#define FILETIME_UNITS_PER_USEC
#define FILETIME_UNITS_PER_SEC
static const unsigned __int64 epoch
References epoch, FILETIME_UNITS_PER_SEC, and FILETIME_UNITS_PER_USEC.
Referenced by basic_archive_file_internal(), BootStrapXLOG(), feGetCurrentTimestamp(), get_formatted_log_time(), GetCurrentTimestamp(), GuessControlValues(), IsCheckpointOnSchedule(), log_line_prefix(), main(), make_outputdirs(), PerformRadiusTransaction(), pg_rusage_init(), pqTraceFormatTimestamp(), ResetUsage(), run_permutation(), ShowUsage(), timeofday(), and try_complete_step().
◆ init_gettimeofday()
static void WINAPI init_gettimeofday |
( |
LPFILETIME |
lpSystemTimeAsFileTime | ) |
|
|
static |
Definition at line 62 of file gettimeofday.c.
78 "GetSystemTimePreciseAsFileTime");
94 (*pg_get_system_time) (lpSystemTimeAsFileTime);
static PgGetSystemTimeFn pg_get_system_time
VOID(WINAPI * PgGetSystemTimeFn)(LPFILETIME)
References pg_get_system_time.
◆ epoch
const unsigned __int64 epoch = UINT64CONST(116444736000000000) |
|
static |
Definition at line 34 of file gettimeofday.c.
Referenced by AdvanceNextFullTransactionIdPastXid(), basic_archive_file_internal(), FullTransactionIdFromEpochAndXid(), FullTransactionIdFromXidAndCtx(), GetEpochTime(), gettimeofday(), timestamp_part_common(), timestamptz_part_common(), TransactionIdInRecentPast(), widen_snapshot_xid(), and XLogRecGetFullXid().
◆ pg_get_system_time