#include "shogi.h"
-void
+void CONV
set_search_limit_time( int turn )
/*
[inputs]
time_max_limit = time_limit = UINT_MAX;
return;
}
-
+
+#if defined(USI)
+ if ( usi_mode != usi_off && usi_byoyomi )
+ {
+ time_max_limit = time_limit = usi_byoyomi;
+ Out( "- time ctrl: %u -- %u\n", time_limit, time_max_limit );
+ return;
+ }
+#endif
+
/* not punctual to the time */
if ( ! sec_limit && ( game_status & flag_time_extendable ) )
{
if ( u0 == 2U ) { u0 = 3U; }
/* 'byo-yomi' is so long that the ordinary time-limit is negligible. */
- if ( u0 < sec_limit_up * 3U / 2U ) { u0 = sec_limit_up * 3U / 2U; }
+ if ( u0 < sec_limit_up * 5U ) { u0 = sec_limit_up * 5U; }
u1 = u0 * 5U;
}
-int
-renovate_time( int turn )
+int CONV
+update_time( int turn )
{
unsigned int te, time_elapsed;
int iret;
}
-void
+void CONV
adjust_time( unsigned int elapsed_new, int turn )
{
const char *str = "TIME SKEW DETECTED";
}
-int
+int CONV
reset_time( unsigned int b_remain, unsigned int w_remain )
{
if ( sec_limit_up == UINT_MAX )
}
-const char *
+const char * CONV
str_time( unsigned int time )
{
static char str[32];
}
-const char *
+const char * CONV
str_time_symple( unsigned int time )
{
static char str[32];
}
-int
+int CONV
get_cputime( unsigned int *ptime )
{
#if defined(_WIN32)
}
-int
+int CONV
get_elapsed( unsigned int *ptime )
{
#if defined(_WIN32)