Ejemplo n.º 1
0
            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;
                }
            }
Ejemplo n.º 2
0
 private string GetFormatTimeString(TimeResultStrings ts, TimeResult result)
 {
     return(new TimeFormat(ts, result).GetString());
 }
Ejemplo n.º 3
0
 public TimeFormat(TimeResultStrings timeResultStrings, TimeResult result)
 {
     this.timeResultStrings = timeResultStrings;
     this.result            = result;
 }