public TimeShort(double value, TimeResultStrings timeResultStrings, SourceValue sourceValue) { this.timeResultStrings = timeResultStrings; switch (sourceValue) { case SourceValue.Seconds: this.timeSpan = System.TimeSpan.FromSeconds(value); break; case SourceValue.Milliseconds: this.timeSpan = System.TimeSpan.FromMilliseconds(value); break; } }
private string GetFormatTimeString(TimeResultStrings ts, TimeResult result) { return(new TimeFormat(ts, result).GetString()); }
public TimeFormat(TimeResultStrings timeResultStrings, TimeResult result) { this.timeResultStrings = timeResultStrings; this.result = result; }