|
|
@ -91,6 +91,7 @@ void cgtimer_time(cgtimer_t *ts_start); |
|
|
|
void cgsleep_ms_r(cgtimer_t *ts_start, int ms); |
|
|
|
void cgsleep_ms_r(cgtimer_t *ts_start, int ms); |
|
|
|
void cgsleep_us_r(cgtimer_t *ts_start, int64_t us); |
|
|
|
void cgsleep_us_r(cgtimer_t *ts_start, int64_t us); |
|
|
|
int cgtimer_to_ms(cgtimer_t *cgt); |
|
|
|
int cgtimer_to_ms(cgtimer_t *cgt); |
|
|
|
|
|
|
|
void cgtimer_sub(cgtimer_t *a, cgtimer_t *b, cgtimer_t *res); |
|
|
|
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); |
|
|
|