| 98 | } |
| 99 | |
| 100 | uint64_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 | |
| 106 | void ClientContext::startTimer() { |
| 107 | if (hasTimeout()) { |
no test coverage detected