MCPcopy Create free account
hub / github.com/catboost/catboost / PollStep

Function PollStep

util/network/pollerimpl.h:656–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654#endif
655
656static inline TDuration PollStep(const TInstant& deadLine, const TInstant& now) noexcept {
657 if (deadLine < now) {
658 return TDuration::Zero();
659 }
660
661 return Min(deadLine - now, TDuration::Seconds(1000));
662}
663
664template <class TBase>
665class TGenericPoller: public TBase {

Callers 2

WaitDMethod · 0.85
PollDFunction · 0.85

Calls 3

ZeroFunction · 0.85
MinFunction · 0.50
SecondsFunction · 0.50

Tested by

no test coverage detected