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