MCPcopy Create free account
hub / github.com/apache/brpc / InMicroseconds

Method InMicroseconds

src/butil/time/time.cc:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88int64_t TimeDelta::InMicroseconds() const {
89 if (is_max()) {
90 // Preserve max to prevent overflow.
91 return std::numeric_limits<int64_t>::max();
92 }
93 return delta_;
94}
95
96// Time -----------------------------------------------------------------------
97

Callers 6

TESTFunction · 0.80
TESTFunction · 0.80
HighResClockTestFunction · 0.80
SleepMethod · 0.80
ComputeCurrentTicksFunction · 0.80
TimedWaitMethod · 0.80

Calls 1

is_maxFunction · 0.85

Tested by 3

TESTFunction · 0.64
TESTFunction · 0.64
HighResClockTestFunction · 0.64