const pv::util::Timestamp& end_time = view_->cursors()->second()->time();
const uint64_t start_sample = start_time.convert_to<double>() * samplerate;
const pv::util::Timestamp& end_time = view_->cursors()->second()->time();
const uint64_t start_sample = start_time.convert_to<double>() * samplerate;