|
@@ -92,7 +92,6 @@ void thr_info_freeze(struct thr_info *thr);
|
|
|
void thr_info_cancel(struct thr_info *thr);
|
|
void thr_info_cancel(struct thr_info *thr);
|
|
|
void nmsleep(unsigned int msecs);
|
|
void nmsleep(unsigned int msecs);
|
|
|
void nusleep(unsigned int usecs);
|
|
void nusleep(unsigned int usecs);
|
|
|
-void cgtime(struct timeval *tv);
|
|
|
|
|
void subtime(struct timeval *a, struct timeval *b);
|
|
void subtime(struct timeval *a, struct timeval *b);
|
|
|
void addtime(struct timeval *a, struct timeval *b);
|
|
void addtime(struct timeval *a, struct timeval *b);
|
|
|
bool time_more(struct timeval *a, struct timeval *b);
|
|
bool time_more(struct timeval *a, struct timeval *b);
|
|
@@ -223,7 +222,9 @@ bool timer_isset(const struct timeval *tvp)
|
|
|
return tvp->tv_sec != -1;
|
|
return tvp->tv_sec != -1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-#define timer_set_now(tvp) cgtime(tvp)
|
|
|
|
|
|
|
+extern void (*timer_set_now)(struct timeval *);
|
|
|
|
|
+extern void bfg_init_time();
|
|
|
|
|
+#define cgtime(tvp) timer_set_now(tvp)
|
|
|
|
|
|
|
|
#define TIMEVAL_USECS(usecs) ( \
|
|
#define TIMEVAL_USECS(usecs) ( \
|
|
|
(struct timeval){ \
|
|
(struct timeval){ \
|