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