| 9083 | } |
| 9084 | |
| 9085 | unsigned int TimeoutTimer::timeToExpire() const |
| 9086 | { |
| 9087 | if (!m_started || m_expired) |
| 9088 | return 0; |
| 9089 | |
| 9090 | const SINT64 t = fb_utils::query_performance_counter() * 1000 / fb_utils::query_performance_frequency(); |
| 9091 | const SINT64 r = m_started + m_value - t; |
| 9092 | return r > 0 ? r : 0; |
| 9093 | } |
| 9094 | |
| 9095 | bool TimeoutTimer::getExpireTimestamp(const ISC_TIMESTAMP_TZ start, ISC_TIMESTAMP_TZ& exp) const |
| 9096 | { |
no test coverage detected