示例#1
0
        private static RecordedTime?GetTimeElapsedSinceStart(IDelimitedValuesReaderRow row, string columnName, RecordedTime startTime)
        {
            string timeString = row.GetCell(columnName);
            TimeSpanWithAccuracy?timeWithAccuracy = TimeSpanWithAccuracy.FromString(timeString, Settings.Default.ImportExportCulture);

            return(timeWithAccuracy != null?startTime.Add(timeWithAccuracy.Value) : null);
        }
 private static RecordedTime?TryCreateRecordedTime(RecordedTime startTime, TimeSpanWithAccuracy?elapsed)
 {
     return(elapsed != null?startTime.Add(elapsed.Value) : null);
 }