diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-12-15 21:48:02 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-06-24 23:33:01 +0200 |
commit | ceab4452f1da38696d5526a65d6fc6775e0affed (patch) | |
tree | ddb7a2deac5976b427a706de50e2e87c9853fd3c | |
parent | 00e9bf2bb3f2220bcf84d4f449907bd1deb2827f (diff) | |
download | cygnal-ceab4452f1da38696d5526a65d6fc6775e0affed.tar.gz cygnal-ceab4452f1da38696d5526a65d6fc6775e0affed.tar.bz2 cygnal-ceab4452f1da38696d5526a65d6fc6775e0affed.zip |
Remove unused GetTickCount_ns
-rw-r--r-- | winsup/cygwin/times.cc | 17 | ||||
-rw-r--r-- | winsup/cygwin/winsup.h | 1 |
2 files changed, 0 insertions, 18 deletions
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 *); |