How can I achieve a modulus operation with System.TimeSpan values, without looping?
问题 I'm in a very performance-sensitive portion of my code (C#/WPF), and I need to perform a modulus operation between two System.TimeSpan values in the quickest way possible. This code will be running thousands of times per second, and I would very much prefer to avoid using a manual loop calculation - at all costs. The idea of a modulus between two TimeSpans may seem a little weird, so allow me to explain - Say we have TimeSpan A = 1 Minute 30 Seconds TimeSpan B = 20 Seconds Here would be a