This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Remove unused GetTickCount_ns


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=ceab4452f1da38696d5526a65d6fc6775e0affed

commit ceab4452f1da38696d5526a65d6fc6775e0affed
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Dec 15 21:48:02 2015 +0100

    Remove unused GetTickCount_ns

Diff:
---
 winsup/cygwin/times.cc | 17 -----------------
 winsup/cygwin/winsup.h |  1 -
 2 files changed, 18 deletions(-)

diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 9589119..2b1e630 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 369b862..44ea72a 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 *);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]