diff options
Diffstat (limited to 'winsup/cygwin/hires.h')
-rw-r--r-- | winsup/cygwin/hires.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/winsup/cygwin/hires.h b/winsup/cygwin/hires.h index 369b087e5..ddc670568 100644 --- a/winsup/cygwin/hires.h +++ b/winsup/cygwin/hires.h @@ -41,15 +41,12 @@ class hires_ms : hires_base { DWORD initime_ms; LARGE_INTEGER initime_us; - UINT minperiod; - static bool began_period; - UINT prime (); + void prime (); public: - LONGLONG usecs (bool justdelta); + LONGLONG usecs (); UINT dmsecs () { return timeGetTime (); } - UINT resolution () { return minperiod ?: prime (); } - + UINT resolution (); }; -#define gtod cygheap->_gtod +extern hires_ms gtod; #endif /*__HIRES_H__*/ |