MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / MillisToTimeval

Function MillisToTimeval

src/util/time.cpp:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150struct timeval MillisToTimeval(int64_t nTimeout)
151{
152 struct timeval timeout;
153 timeout.tv_sec = nTimeout / 1000;
154 timeout.tv_usec = (nTimeout % 1000) * 1000;
155 return timeout;
156}
157
158struct timeval MillisToTimeval(std::chrono::milliseconds ms)
159{

Callers 2

integer.cppFile · 0.85
WaitManyMethod · 0.85

Calls 1

count_millisecondsFunction · 0.85

Tested by

no test coverage detected