コード例 #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));
 }