Remove unused GetTickCount_ns

This commit is contained in:
Corinna Vinschen 2015-12-15 21:48:02 +01:00
parent 00e9bf2bb3
commit ceab4452f1
2 changed files with 0 additions and 18 deletions

View File

@ -36,23 +36,6 @@ get_system_time (PLARGE_INTEGER systime)
: GetSystemTimeAsFileTime ((LPFILETIME) systime);
}
/* There's no GetTickCount64 on pre-Vista. This is the do-it-yourself kit,
as it was implemented as hires_ms::timeGetTime_ns once. Resurrect the
functionality to allow reliable (albeit low res) timing values. The
function returns the value in 100ns interval to avoid a division by 10000. */
ULONGLONG
GetTickCount_ns ()
{
LARGE_INTEGER t;
do
{
t.HighPart = SharedUserData.InterruptTime.High1Time;
t.LowPart = SharedUserData.InterruptTime.LowPart;
}
while (t.HighPart != SharedUserData.InterruptTime.High2Time);
return (ULONGLONG) t.QuadPart;
}
/* Cygwin internal */
static uint64_t __stdcall
__to_clock_t (PLARGE_INTEGER src, int flag)

View File

@ -200,7 +200,6 @@ void __reg2 nofinalslash (const char *src, char *dst);
void __reg3 *hook_or_detect_cygwin (const char *, const void *, WORD&, HANDLE h = NULL);
/* Time related */
ULONGLONG GetTickCount_ns ();
void __stdcall totimeval (struct timeval *, PLARGE_INTEGER, int, int);
time_t __stdcall to_time_t (PLARGE_INTEGER);
void __stdcall to_timestruc_t (PLARGE_INTEGER, timestruc_t *);