findTimeInterval
Finds an index i in times such that the parameter time is in the interval [times[i], times[i + 1]].
Return
The index for the element at the start of the interval.
Parameters
time
The time.
startIndex
The index from which to start the search.