pub fn time2bin( nanoseconds: &Vec<f32>, t_ns: f32, ) -> Result<usize, WaveformError>
Given a time in ns, find the bin most closely corresponding to that time