Last active
December 8, 2020 09:52
-
-
Save jenshnielsen/4ed1ee1e73c858550d46f4f881d1381e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctypes import byref, windll | |
from ctypes.wintypes import PULONG, LONG | |
import time | |
MinimumResolution = LONG() | |
MaximumResolution = LONG() | |
CurrentResolution = LONG() | |
windll.ntdll.NtQueryTimerResolution(byref(MinimumResolution), byref(MaximumResolution), byref(CurrentResolution)) | |
print(f"Minimum {MinimumResolution}, " | |
f"Maximum {MaximumResolution}, " | |
f"Current {CurrentResolution}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment