static double ProcessTimestamp(HarpMessage input) { if (input.Error) { throw new InvalidOperationException("The Harp message is an error report."); } return(input.GetTimestamp()); }