}
-static void
-UpdateClocks(void)
+void
+Curses_UpdateClocks(void)
{
short m, s;
long dt;
}
-/*
- * Determine the time that has passed since the search was started. If the
- * elapsed time exceeds the target(ResponseTime + ExtraTime) then set timeout
- * to true which will terminate the search.
- * iop = COMPUTE_MODE calculate et, bump ETnodes
- * iop = COMPUTE_AND_INIT_MODE calculate et, set timeout if time exceeded,
- * set reference time
- */
void
-Curses_ElapsedTime(ElapsedTime_mode iop)
+Curses_PollForInput(void)
{
- long current_time;
int i;
int nchar;
-#ifdef HAVE_GETTIMEOFDAY
- struct timeval tv;
-#endif
-
if ((i = ioctl((int) 0, FIONREAD, &nchar)))
{
perror("FIONREAD");
flag.bothsides = false;
}
+}
+
+/*
+ * Determine the time that has passed since the search was started. If the
+ * elapsed time exceeds the target(ResponseTime + ExtraTime) then set timeout
+ * to true which will terminate the search.
+ * iop = COMPUTE_MODE calculate et, bump ETnodes
+ * iop = COMPUTE_AND_INIT_MODE calculate et, set timeout if time exceeded,
+ * set reference time
+ */
+void
+Curses_ElapsedTime(ElapsedTime_mode iop)
+{
+ long current_time;
+#ifdef HAVE_GETTIMEOFDAY
+ struct timeval tv;
+#endif
+
+ PollForInput();
#ifdef HAVE_GETTIMEOFDAY
gettimeofday(&tv, NULL);