| 13 | |
| 14 | #ifdef DEBUG |
| 15 | static double stamp_sub(const struct timeval *from, const struct timeval *sub_by) |
| 16 | { |
| 17 | struct timeval res; |
| 18 | |
| 19 | memcpy(&res, from, sizeof(struct timeval)); |
| 20 | |
| 21 | res.tv_usec -= sub_by->tv_usec; |
| 22 | if (res.tv_usec < 0) { |
| 23 | --res.tv_sec; |
| 24 | res.tv_usec += 1000000; |
| 25 | } |
| 26 | res.tv_sec -= sub_by->tv_sec; |
| 27 | |
| 28 | return (res.tv_sec * 1000.0 + res.tv_usec/1000.0); |
| 29 | } |
| 30 | #endif |
| 31 | |
| 32 | http_request::http_request(acl::http_request* request) |
no test coverage detected
searching dependent graphs…