MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getTimeoutRemainingInMS

Method getTimeoutRemainingInMS

src/main/client_context.cpp:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100uint64_t ClientContext::getTimeoutRemainingInMS() const {
101 DASSERT(hasTimeout());
102 const auto elapsed = activeQuery.timer.getElapsedTimeInMS();
103 return elapsed >= clientConfig.timeoutInMS ? 0 : clientConfig.timeoutInMS - elapsed;
104}
105
106void ClientContext::startTimer() {
107 if (hasTimeout()) {

Callers 2

getNextTupleMethod · 0.80

Calls 2

hasTimeoutFunction · 0.85
getElapsedTimeInMSMethod · 0.80

Tested by

no test coverage detected