| 328 | } |
| 329 | |
| 330 | void clearstat(struct clientparam * param) { |
| 331 | |
| 332 | #ifdef _WIN32 |
| 333 | struct timeb tb; |
| 334 | |
| 335 | ftime(&tb); |
| 336 | param->time_start = (time_t)tb.time; |
| 337 | param->msec_start = (unsigned)tb.millitm; |
| 338 | |
| 339 | #else |
| 340 | struct timeval tv; |
| 341 | struct timezone tz; |
| 342 | gettimeofday(&tv, &tz); |
| 343 | |
| 344 | param->time_start = (time_t)tv.tv_sec; |
| 345 | param->msec_start = (tv.tv_usec / 1000); |
| 346 | #endif |
| 347 | param->statscli64 = param->statssrv64 = param->nreads = param->nwrites = |
| 348 | param->nconnects = 0; |
| 349 | } |
| 350 | |
| 351 | |
| 352 | char months[12][4] = { |
no outgoing calls
no test coverage detected