Rx minimal time accuracy


this post discuss basic behavior of RX which you better be aware of. in general RX’s time’s based operator relay on Timers therefore the minimal accuracy of those operator depend on the timer  accuracy which is around 15 millisecond.   the following snippets demonstrate it: Code Snippet Observable.Interval(TimeSpan.FromMilliseconds(1))     .TimeInterval()     .Subscribe(v => Console.WriteLine(v.Interval.Milliseconds)); and this one: Code Snippet var sw = Stopwatch.StartNew(); var tmr = new Timer(state => {     long milli = sw.ElapsedMilliseconds;     sw.Restart();     Console.WriteLine(milli); }, null, 1, 1);
no comments