public static void EndOptimizedMode() { if (TimeEndPeriod(caps.wPeriodMin) != 0) { Debug.ThrowError("StopWatch", "TimeEndPeriod failed"); } }