| 152 | } |
| 153 | |
| 154 | void* https_client::run() |
| 155 | { |
| 156 | struct timeval begin; |
| 157 | gettimeofday(&begin, NULL); |
| 158 | |
| 159 | int n = http_request(count_); |
| 160 | if (n != count_) |
| 161 | printf(">>>>SOME TASK NOT COMPLETE!<<<<<\r\n"); |
| 162 | |
| 163 | struct timeval end; |
| 164 | gettimeofday(&end, NULL); |
| 165 | double spent = util::stamp_sub(&end, &begin); |
| 166 | printf("total: %d, spent: %.2f, speed: %.2f\r\n", |
| 167 | count_, spent, (n * 1000) / (spent > 1 ? spent : 1)); |
| 168 | |
| 169 | return NULL; |
| 170 | } |
nothing calls this directly
no test coverage detected