Windows 10: The default system clock resolution is 15.625ms (64Hz). Task.Delay(1) is aligned to the nearest clock tick, resulting in an actual delay of ~12-15ms (test data: 13.0369ms, 14.4563ms).
Android: Timer resolution is typically 10-20ms (depending on device and system version). Task.Delay(1) may result in a delay of 10-20ms, affected by power optimizations (e.g., Doze mode).
To achieve higher precision, use the hardware clock: Stopwatch.GetTimestamp and GetElapsedTime use the hardware clock (nanosecond-level precision).
|
|