(hires_ms::usecs): Call prime if haven't called began_period().
* param.h: Don't define stuff that is already defined in endian.h.
2005-11-10 Christopher Faylor <cgf@timesys.com>
+ * times.cc (hires_ms::prime): Comment out call to timeBeginPeriod for
+ now.
+ (hires_ms::usecs): Call prime if haven't called began_period().
+
+ * param.h: Don't define stuff that is already defined in endian.h.
+
+2005-11-10 Christopher Faylor <cgf@timesys.com>
+
* include/endian.h: Remove USE_BSD ifdef since it is never defined on
Cygwin.
BSD variant of this constant. */
#define DEV_BSIZE 1024
+#if 0 /* defined in endian.h */
/* Some autoconf'd packages check for endianness. When cross-building we
can't run programs on the target. Fortunately, autoconf supports the
definition of byte order in sys/param.h (that's us!).
/* All known win32 systems are little endian. */
#define BYTE_ORDER LITTLE_ENDIAN
+#endif
#ifndef NULL
#define NULL 0L
if (!began_period)
{
+#if 0
timeBeginPeriod (minperiod);
+#endif
began_period = true;
stupid_printf ("timeBeginPeriod called");
}
hires_ms::usecs (bool justdelta)
{
stupid_printf ("before call to prime(), minperiod %u, process priority %d", minperiod, GetThreadPriority (GetCurrentThread ()));
- if (!minperiod) /* NO_COPY variable */
+ if (!inited || !began_period) /* NO_COPY variable */
prime ();
stupid_printf ("after call to prime(), process priority %d", GetThreadPriority (GetCurrentThread ()));