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

Function stamp_sub

lib_rpc/src/http_stream.cpp:15–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14#ifdef DEBUG
15static 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
32http_request::http_request(acl::http_request* request)

Callers 5

rpc_requestMethod · 0.70
read_requestMethod · 0.70
send_responseMethod · 0.70
handle_rpcFunction · 0.50
mainFunction · 0.50

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…