Added a function for extracting timestamp of first measurement.