|
@@ -77,6 +77,11 @@ 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 cgtime(struct timeval *tv);
|
|
void cgtime(struct timeval *tv);
|
|
|
|
|
+void subtime(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_less(struct timeval *a, struct timeval *b);
|
|
|
|
|
+void copy_time(struct timeval *dest, const struct timeval *src);
|
|
|
double us_tdiff(struct timeval *end, struct timeval *start);
|
|
double us_tdiff(struct timeval *end, struct timeval *start);
|
|
|
double tdiff(struct timeval *end, struct timeval *start);
|
|
double tdiff(struct timeval *end, struct timeval *start);
|
|
|
bool stratum_send(struct pool *pool, char *s, ssize_t len);
|
|
bool stratum_send(struct pool *pool, char *s, ssize_t len);
|