refine dummy current_time to avoid infinit waiting loop

pull/1252/head
Takashi Kojo 2017-11-27 09:03:50 +09:00
parent a3b2817036
commit 4cd39b4bfb
1 changed files with 7 additions and 1 deletions

View File

@ -62,6 +62,12 @@ double current_time(int reset)
#else
double current_time(int reset) { return 0.0 ; }
/* dummy */
double current_time(int reset) {
static double t;
t += 1.0; /* for avoid infinit loop of waiting time */
if(reset)t = 0.0;
return t ;
}
#endif