mirror of https://github.com/wolfSSL/wolfssl.git
refine dummy current_time to avoid infinit waiting loop
parent
a3b2817036
commit
4cd39b4bfb
|
@ -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
|
Loading…
Reference in New Issue