Example #1
0
        void EndPeriod(uint uPeriod)
        {
            Log.Out(msg: "EndPeriod with timer resolution {0}", (object)uPeriod);
            var num = InternalNativeMethods.timeEndPeriod(uPeriod: uPeriod);

            if (num != 0U)
            {
                throw new Exception(message: string.Format(format: "P/Invoke of timeEndPeriod returned error {0}", arg0: num));
            }
        }