seconds/nanoseconds.
(clock_setres): Use correct conversion to nanoseconds.
+2006-02-10 Brian Ford <Brian.Ford@FlightSafety.com>
+
+ * times.cc (clock_getres): Use correct conversion from milliseconds to
+ seconds/nanoseconds.
+ (clock_setres): Use correct conversion to nanoseconds.
+
2006-02-10 Christopher Faylor <cgf@timesys.com>
* external.cc (sync_winenv): Rename from "setup_winenv". Use same
/* here if execed */
static pinfo NO_COPY myself_identity;
myself_identity.init (cygwin_pid (myself->dwProcessId), PID_EXECED, NULL);
- myself->start_time = time (NULL); /* Register our starting time. */
+ // myself->start_time = time (NULL); /* Register our starting time. */
myself->exec_sendsig = NULL;
myself->exec_dwProcessId = 0;
}
DWORD period = gtod.resolution ();
- tp->tv_sec = period / 1000000;
- tp->tv_nsec = (period % 1000000) * 1000;
+ tp->tv_sec = period / 1000;
+ tp->tv_nsec = (period % 1000) * 1000000;
return 0;
}
if (period_set)
timeEndPeriod (minperiod);
- DWORD period = (tp->tv_sec * 1000) + ((tp->tv_nsec) / 1000);
+ DWORD period = (tp->tv_sec * 1000) + ((tp->tv_nsec) / 1000000);
if (timeBeginPeriod (period))
{