static HighPrecisionTimer() { // Get multimedia timer capabilities. timeGetDevCaps(ref caps, Marshal.SizeOf(caps)); }