summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/hires.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-11-11 16:42:15 +0000
committerChristopher Faylor <me@cgf.cx>2005-11-11 16:42:15 +0000
commitecb908f699a0de17c82057787f75e34090d39325 (patch)
tree578b898b2c623d43ce4f64f73d4547102cc5c519 /winsup/cygwin/hires.h
parent37bd11ed125628f987be0ec47019be396b4a2d54 (diff)
downloadcygnal-ecb908f699a0de17c82057787f75e34090d39325.tar.gz
cygnal-ecb908f699a0de17c82057787f75e34090d39325.tar.bz2
cygnal-ecb908f699a0de17c82057787f75e34090d39325.zip
* cygheap.h (init_cygheap::_gtod): Remove.
* cygwin.din: Export clock_getres and clock_setres. * hires.h (hires_ms::minperiod): Delete declaration. (hires_ms::began_period): Ditto. (hires_ms::prime): Make void. (hires_ms::resolution): Just define here. (hires_ms::usecs): Remove unneeded argument. (gtod): Redeclare as a variable. * timer.cc (timer_thread): Eliminate argument to gtod.usecs(). (timer_tracker::gettime): Ditto. (timer_tracker::settime): Ditto. * times.cc (gettimeofday): Ditto. (hires_ms::began_period): Delete declaration. (hires_us::prime): Remove debugging. (hires_ms::prime): Make void. Eliminate period stuff. (hires_ms::usecs): Eliminate argument to gtod.usecs(). (hires_ms::resolution): New function. (clock_getres): Ditto. (clock_setres): Ditto. * version.h: Bump API version to 143. * include/cygwin/time.h: New file.
Diffstat (limited to 'winsup/cygwin/hires.h')
-rw-r--r--winsup/cygwin/hires.h11
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__*/