6 writes to Ticks
Aspire.Dashboard (6)
Otlp\Model\DurationFormatter.cs (6)
21new UnitStep { Unit = "d", Ticks = TimeSpan.TicksPerDay, Threshold = TimeSpan.TicksPerDay }, 22new UnitStep { Unit = "h", Ticks = TimeSpan.TicksPerHour, Threshold = TimeSpan.TicksPerHour }, 23new UnitStep { Unit = "m", Ticks = TimeSpan.TicksPerMinute, Threshold = TimeSpan.TicksPerMinute }, 24new UnitStep { Unit = "s", Ticks = TimeSpan.TicksPerSecond, Threshold = TimeSpan.TicksPerSecond / 10, IsDecimal = true }, 25new UnitStep { Unit = "ms", Ticks = TimeSpan.TicksPerMillisecond, Threshold = TimeSpan.TicksPerMillisecond / 100, IsDecimal = true }, 26new UnitStep { Unit = "μs", Ticks = TimeSpan.TicksPerMicrosecond, Threshold = TimeSpan.TicksPerMicrosecond, IsDecimal = true },
5 references to Ticks
Aspire.Dashboard (5)
Otlp\Model\DurationFormatter.cs (5)
32var ofPrevious = primaryUnit.Ticks / secondaryUnit.Ticks; 38return $"{ticks / primaryUnit.Ticks:0.##}{primaryUnit.Unit}"; 41var primaryValue = Math.Floor(ticks / primaryUnit.Ticks); 43var secondaryValue = Math.Round((ticks / secondaryUnit.Ticks) % ofPrevious, MidpointRounding.AwayFromZero);