MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / sampleAtOrBeforeTime

Method sampleAtOrBeforeTime

pj_datastore/src/query.cpp:405–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405std::optional<SeriesSample> SeriesReader::sampleAtOrBeforeTime(Timestamp t) const {
406 const auto index = indexAtOrBeforeTime(t);
407 return index.has_value() ? sampleAt(*index) : std::nullopt;
408}
409
410std::optional<SeriesSample> SeriesReader::sampleAtOrAfterTime(Timestamp t) const {
411 const auto index = indexAtOrAfterTime(t);

Callers 3

sampleFromTimeMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64