Probably OS restores when the process ends. Let the process run all the time. Consider role editorExtension.
Also, code like `wait.ms(10);` or `10.ms();`temporarily sets the timer resolution = 1 ms if timeMilliseconds < 100, and later restores. It uses timeBeginPeriod/timeEndPeriod.
Also, code like `wait.ms(10);` or `10.ms();`temporarily sets the timer resolution = 1 ms if timeMilliseconds < 100, and later restores. It uses timeBeginPeriod/timeEndPeriod.