Quote Originally Posted by seiferalmasy
"Sleep does not seem to be affected by that command whatsoever"

Apperently it does. On my computer Gettickcount is 1 ms when timebeginperiod(1) is called. And one guy who did full study saus sleep goes to 2ms accuracy at the least with sleep
Well, i stand corrected then. However, i can assure you that gettickcount will not have 1ms accuracy on all windows computers, and will have ~16ms accuracy on at least some, if not many. So if you must have ~2ms accuracy, timegettime + timebegin(end)period(1) should be used, but if you don't mind getting 16ms accuracy on at least some computers, gettickcount can be used.