I use this method to setup hpet:
Code:
bcdedit /set {current} useplatformclock true
The current thing is for the current booted up os.
It's just to ensure things don't get goofed up somehow and the setting is applied incorrectly in some way.
The script for the user timer thing, is perm.
Code:
;User Timer Max Quantum Slice Resolution
;Quantum timer resolution
Set_User_Timer_QSR_Min:
DllCall("ntdll.dll\NtSetTimerResolution", UInt, 1) ;min...
return
Set_User_Timer_QSR_Max:
DllCall("ntdll.dll\NtSetTimerResolution", UInt, 999999) ;max...
return
Set_User_Timer_QSR_05:
DllCall("ntdll.dll\NtSetTimerResolution", UInt, 5000) ;0.500 ms
return
Set_User_Timer_QSR_1:
DllCall("ntdll.dll\NtSetTimerResolution", UInt, 10000) ;1.000 ms
return
Set_User_Timer_QSR_10:
DllCall("ntdll.dll\NtSetTimerResolution", UInt, 100000) ;10.000 ms
return
Set_User_Timer_QSR_156:
DllCall("ntdll.dll\NtSetTimerResolution", UInt, 156000) ;15.600 ms
return
I just call the one I want from the context menu in my network monitor program that I made.
Otherwise you'de just put in a blank file, with an ahk file extention, and ahk (ahk_L I believe is the only one updated these days) installed:
DllCall("ntdll.dll\NtSetTimerResolution", UInt, 156000) ;15.600 ms
That would set it to the default.
There's a way of reading it back, to ensur it was set right.
I don't know where I have that code at the moment though, it was a random test script i have backed up with a bunch of others somewhere.
The script isn't supposed to stay running...
It wouldn't normally unless you made one that did so.
Anyways there were times where some apps had lowered the timer to increase responsiveness.
I don't remember what apps though :\.
I probably should check that out actually... (It's possible it gets increased because of that when I run a certain app..)
I'll brb, gonna make a prog real quick that reads back the value.
Edit:
Err, I found the api, NtQueryTimerResolution.
But I haven't been able to figure it out, I've done it twice before.
So I'm searching my drive for all files containing this string, hopefully I find it...
Oui, in 2-3 hrs I would of been up for 24hrs, I hope I find this thing...
Bookmarks