MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / readInterval

Method readInterval

lib/data/fluxmapreader.cc:75–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75unsigned FluxmapReader::readInterval(nanoseconds_t clock)
76{
77 unsigned thresholdTicks =
78 (clock * _config.pulse_debounce_threshold()) / NS_PER_TICK;
79 unsigned ticks = 0;
80
81 while (ticks <= thresholdTicks)
82 {
83 unsigned thisTicks;
84 if (!findEvent(F_BIT_PULSE, thisTicks))
85 break;
86 ticks += thisTicks;
87 }
88 return ticks;
89}
90
91void FluxmapReader::seek(nanoseconds_t ns)
92{

Callers 1

nextFluxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected