MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / timeToExpire

Method timeToExpire

src/jrd/jrd.cpp:9085–9093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9083}
9084
9085unsigned 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
9095bool TimeoutTimer::getExpireTimestamp(const ISC_TIMESTAMP_TZ start, ISC_TIMESTAMP_TZ& exp) const
9096{

Callers 2

executeMethod · 0.80
adjustWaitMethod · 0.80

Calls 2

Tested by

no test coverage detected