/// <summary> /// Indicates whether this instance and a specified object are equal. /// </summary> /// <param name="obj">Another object to compare to.</param> /// <returns> /// true if <paramref name="obj"/> and this instance are the same type and represent the same value; otherwise, false. /// </returns> public bool Equals(TimerSample obj) { return(obj.Value == Value); }
/// <summary> /// Gets the time elapsed between <paramref name="startTime"/> and <paramref name="endTime" />. /// </summary> /// <param name="startTime">The start time.</param> /// <param name="endTime">The end time.</param> /// <returns></returns> /// <remarks> /// This method is safe for using in a multithreaded environment. /// </remarks> public static double Duration(TimerSample startTime, TimerSample endTime) { return Duration(startTime.Value, endTime.Value); }
/// <summary> /// Gets the time elapsed between <paramref name="startTime"/> and <paramref name="endTime" />. /// </summary> /// <param name="startTime">The start time.</param> /// <param name="endTime">The end time.</param> /// <returns></returns> /// <remarks> /// This method is safe for using in a multithreaded environment. /// </remarks> public static double Duration(TimerSample startTime, TimerSample endTime) { return(Duration(startTime.Value, endTime.Value)); }
/// <summary> /// Indicates whether this instance and a specified object are equal. /// </summary> /// <param name="obj">Another object to compare to.</param> /// <returns> /// true if <paramref name="obj"/> and this instance are the same type and represent the same value; otherwise, false. /// </returns> public bool Equals(TimerSample obj) { return obj.Value == Value; }