Пример #1
0
 /// <summary>
 /// Adds timespan to this struct
 /// </summary>
 public ShortTime Add(TimeSpan duration)
 {
     return(new ShortTime(ShortTimeFunctions.AddTicks(m_time, duration.Ticks)));
 }
Пример #2
0
 /// <summary>
 /// Adds ticks to this struct
 /// </summary>
 public ShortTime AddTicks(double duration)
 {
     return(new ShortTime(ShortTimeFunctions.AddTicks(m_time, duration)));
 }
Пример #3
0
 /// <summary>
 /// Adds milliseconds to this struct
 /// </summary>
 public ShortTime AddMilliseconds(double duration)
 {
     return(new ShortTime(ShortTimeFunctions.AddMilliseconds(m_time, duration)));
 }
Пример #4
0
 /// <summary>
 /// The elapsed time
 /// </summary>
 public TimeSpan Elapsed(ShortTime futureTime)
 {
     return(new TimeSpan((long)ShortTimeFunctions.ElapsedTicks(m_time, futureTime.m_time)));
 }
Пример #5
0
 /// <summary>
 /// The elapsed time in ticks
 /// </summary>
 public double ElapsedTicks(ShortTime futureTime)
 {
     return(ShortTimeFunctions.ElapsedTicks(m_time, futureTime.m_time));
 }
Пример #6
0
 /// <summary>
 /// The elapsed time in microseconds
 /// </summary>
 public double ElapsedMicroseconds(ShortTime futureTime)
 {
     return(ShortTimeFunctions.ElapsedMicroseconds(m_time, futureTime.m_time));
 }