Fix debounce period in C# threshold example