3 writes to _ticks
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (3)
241_ticks = ticks; 246_ticks = TimeToTicks(hours, minutes, seconds); 305_ticks = totalMicroseconds * TicksPerMicrosecond;
49 references to _ticks
System.Private.CoreLib (49)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (4)
862return AddTicks(value._ticks); 1657ulong ticks = (ulong)(Ticks - value._ticks); 1857ulong ticks = (ulong)(d.Ticks + t._ticks); 1864ulong ticks = (ulong)(d.Ticks - t._ticks);
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (1)
371public static TimeOnly FromTimeSpan(TimeSpan timeSpan) => new TimeOnly(timeSpan._ticks);
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (44)
308public long Ticks => _ticks; 310public int Days => (int)(_ticks / TicksPerDay); 312public int Hours => (int)(_ticks / TicksPerHour % HoursPerDay); 314public int Milliseconds => (int)(_ticks / TicksPerMillisecond % MillisecondsPerSecond); 323public int Microseconds => (int)(_ticks / TicksPerMicrosecond % MicrosecondsPerMillisecond); 332public int Nanoseconds => (int)(_ticks % TicksPerMicrosecond * NanosecondsPerTick); 334public int Minutes => (int)(_ticks / TicksPerMinute % MinutesPerHour); 336public int Seconds => (int)(_ticks / TicksPerSecond % SecondsPerMinute); 338public double TotalDays => (double)_ticks / TicksPerDay; 340public double TotalHours => (double)_ticks / TicksPerHour; 346double temp = (double)_ticks / TicksPerMillisecond; 371public double TotalMicroseconds => (double)_ticks / TicksPerMicrosecond; 383public double TotalNanoseconds => (double)_ticks * NanosecondsPerTick; 385public double TotalMinutes => (double)_ticks / TicksPerMinute; 387public double TotalSeconds => (double)_ticks / TicksPerSecond; 394public static int Compare(TimeSpan t1, TimeSpan t2) => t1._ticks.CompareTo(t2._ticks); 418if (_ticks == MinTicks) 422return new TimeSpan(_ticks >= 0 ? _ticks : -_ticks); 431public override int GetHashCode() => _ticks.GetHashCode(); 870if (t._ticks == MinTicks) 874return new TimeSpan(-t._ticks); 879long result = t1._ticks - t2._ticks; 880long t1Sign = t1._ticks >> 63; 882if ((t1Sign != (t2._ticks >> 63)) && (t1Sign != (result >> 63))) 895long result = t1._ticks + t2._ticks; 896long t1Sign = t1._ticks >> 63; 898if ((t1Sign == (t2._ticks >> 63)) && (t1Sign != (result >> 63))) 944public static bool operator ==(TimeSpan t1, TimeSpan t2) => t1._ticks == t2._ticks; 947public static bool operator !=(TimeSpan t1, TimeSpan t2) => t1._ticks != t2._ticks; 950public static bool operator <(TimeSpan t1, TimeSpan t2) => t1._ticks < t2._ticks; 953public static bool operator <=(TimeSpan t1, TimeSpan t2) => t1._ticks <= t2._ticks; 956public static bool operator >(TimeSpan t1, TimeSpan t2) => t1._ticks > t2._ticks; 959public static bool operator >=(TimeSpan t1, TimeSpan t2) => t1._ticks >= t2._ticks;