diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 9589119fb..2b1e63049 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -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) diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 369b86215..44ea72a87 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -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 *);