MCPcopy Create free account
hub / github.com/acl-dev/acl / run

Method run

lib_acl_cpp/samples/ssl/https_client/https_client.cpp:154–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void* 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}

Callers

nothing calls this directly

Calls 3

gettimeofdayFunction · 0.50
http_requestClass · 0.50
stamp_subFunction · 0.50

Tested by

no test coverage detected