MCPcopy Create free account
hub / github.com/apache/arrow / LatencyGeneratorImpl

Method LatencyGeneratorImpl

cpp/src/arrow/io/slow.cc:44–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 ~LatencyGeneratorImpl() override = default;
43
44 LatencyGeneratorImpl(double average_latency, int32_t seed)
45 : gen_(static_cast<decltype(gen_)::result_type>(seed)),
46 latency_dist_(average_latency, average_latency * kStandardDeviationRatio) {}
47
48 double NextLatency() override {
49 // std::random distributions are unlikely to be thread-safe, and

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected