예제 #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));
 }