We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 683a0e7 + c9d29f9 commit afebbd3Copy full SHA for afebbd3
Microsoft.Toolkit.Uwp.Input.GazeInteraction/OneEuroFilter.cs
@@ -57,7 +57,7 @@ public virtual GazeFilterArgs Update(GazeFilterArgs args)
57
Point cutoff = new Point(cf, cf);
58
59
// determine sampling frequency based on last time stamp
60
- float samplingFrequency = 100000000.0f / Math.Max(1, (args.Timestamp - _lastTimestamp).Ticks);
+ var samplingFrequency = (float)TimeSpan.TicksPerSecond / Math.Max(1, (args.Timestamp - _lastTimestamp).Ticks);
61
_lastTimestamp = args.Timestamp;
62
63
// calculate change in distance...
0 commit comments