{"id":20119098,"url":"https://github.com/luslower/zwtimerresolution","last_synced_at":"2025-06-26T09:38:55.489Z","repository":{"id":228662966,"uuid":"774601487","full_name":"LuSlower/ZwTimerResolution","owner":"LuSlower","description":"one more tool to change the timer resolution in the context of the calling process","archived":false,"fork":false,"pushed_at":"2025-04-12T03:05:07.000Z","size":437,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-06T14:36:58.756Z","etag":null,"topics":["fps-boost","inputlag","latency","nttimerresolution","resolution","sleep-timer","timer","timer-resolution","timeresolution","timerresolution","windows","zwsettimerresolution","zwtimeresolution"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LuSlower.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-19T20:50:07.000Z","updated_at":"2025-05-06T03:36:29.000Z","dependencies_parsed_at":"2024-08-25T01:44:18.607Z","dependency_job_id":"5149bfb5-fd04-4367-801c-7a4e8ba35c4f","html_url":"https://github.com/LuSlower/ZwTimerResolution","commit_stats":null,"previous_names":["luslower/settimerres","luslower/nt_timer","luslower/zwtimerresolution"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/LuSlower/ZwTimerResolution","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuSlower%2FZwTimerResolution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuSlower%2FZwTimerResolution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuSlower%2FZwTimerResolution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuSlower%2FZwTimerResolution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuSlower","download_url":"https://codeload.github.com/LuSlower/ZwTimerResolution/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuSlower%2FZwTimerResolution/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262039849,"owners_count":23249287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fps-boost","inputlag","latency","nttimerresolution","resolution","sleep-timer","timer","timer-resolution","timeresolution","timerresolution","windows","zwsettimerresolution","zwtimeresolution"],"created_at":"2024-11-13T19:14:20.601Z","updated_at":"2025-06-26T09:38:55.462Z","avatar_url":"https://github.com/LuSlower.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZwTimerResolution\nOne more tool to change the resolution of the system timer in the context of the calling process\n\n[![Total Downloads](https://img.shields.io/github/downloads/LuSlower/ZwTimerResolution/total.svg)](https://github.com/LuSlower/ZwTimerResolution/releases)\n\n## CLI\n\n* Opening it or running it without arguments will by default run the Sleep(1) accuracy test\n* Somewhat lighter in consumption (less than 400k total bytes)\n* Get help by passing the arg /? or help\n\n## GUI\n\n![image](https://github.com/user-attachments/assets/55c16ad5-7e6a-45a5-a8f4-4a3d4c311e8a)\n\n* Press ESC to hide the GUI, you can right click on the tray icon to exit the app\n* This Win32 GUI consumes little memory (about 1.3k total bytes)\n\n## INFO\n\u003e Reducing the timer interval has an adverse effect on battery life by preventing the system from going idle. It is particularly important that programs that may remain inactive for long periods of time (paused video/music players, minimized programs, background programs, etc.) do not increase the timer frequency when they do not need it.\n\n* If you have Windows Server 2022/Windows 11 you must have in your registry:\n\n\u003e [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\kernel]\n\"GlobalTimerResolutionRequests\"=dword:00000001\n\nIf you want to set a custom resolution, please specify\n\n```\nzwt.exe --res 5000\n```\n\n## PRECISION\n\nRunning zwtimer without arguments (opening it) or passing the '--test' argument will run zwtimer in a loop to check the accuracy of Sleep(1)\n\n```\nC:\\...\u003ezwt.exe --test\n\nsleep(1): 1.0087 (delta: 0.0087) | zwres: 5060 hns\nsleep(1): 1.0099 (delta: 0.0099) | zwres: 5060 hns\nsleep(1): 1.0083 (delta: 0.0083) | zwres: 5060 hns\nsleep(1): 1.0096 (delta: 0.0096) | zwres: 5060 hns\nsleep(1): 1.0089 (delta: 0.0089) | zwres: 5060 hns\nsleep(1): 1.0088 (delta: 0.0088) | zwres: 5060 hns\nsleep(1): 1.0083 (delta: 0.0083) | zwres: 5060 hns\nsleep(1): 1.0086 (delta: 0.0086) | zwres: 5060 hns\nsleep(1): 1.0078 (delta: 0.0078) | zwres: 5060 hns\nsleep(1): 1.0071 (delta: 0.0071) | zwres: 5060 hns\nsleep(1): 1.0106 (delta: 0.0106) | zwres: 5060 hns\nsleep(1): 1.0076 (delta: 0.0076) | zwres: 5060 hns\nsleep(1): 1.0089 (delta: 0.0089) | zwres: 5060 hns\nsleep(1): 1.0099 (delta: 0.0099) | zwres: 5060 hns\nsleep(1): 1.0090 (delta: 0.0090) | zwres: 5060 hns\nsleep(1): 1.0068 (delta: 0.0068) | zwres: 5060 hns\n```\n\nApart from 'test' you can specify 'count' which will specify the number of times the precision of sleep(1) will be measured.\nand will show more advanced metrics\n```\nC:\\...\u003ezwt.exe --test 10\n\nsleep(1): 1.0115 (delta: 0.0115) | zwres: 5060 hns\nsleep(1): 1.0117 (delta: 0.0117) | zwres: 5060 hns\nsleep(1): 1.0110 (delta: 0.0110) | zwres: 5060 hns\nsleep(1): 1.0084 (delta: 0.0084) | zwres: 5060 hns\nsleep(1): 1.0099 (delta: 0.0099) | zwres: 5060 hns\nsleep(1): 1.0126 (delta: 0.0126) | zwres: 5060 hns\nsleep(1): 1.0083 (delta: 0.0083) | zwres: 5060 hns\nsleep(1): 1.0100 (delta: 0.0100) | zwres: 5060 hns\nsleep(1): 1.0092 (delta: 0.0092) | zwres: 5060 hns\nsleep(1): 1.0116 (delta: 0.0116) | zwres: 5060 hns\n\nmin: 1.0083 ms\nmax: 1.0126 ms\navg: 1.0104 ms\nstdev: 0.0014 ms\n```\n\n## SLEEP-TESTER\n\n![image](https://github.com/user-attachments/assets/798ea272-cdda-4617-8265-a82761f7215b)\n\nAt the end the results will be saved in SleepTest.txt located in the same directory,\nResolutions with a delta \u003c 150 will be marked with *, to visualize which of all the resolutions obtained the highest precision (lowest delta, lowest diff),\nyou can view them in https://list2chart.com/csv-to-chart/, just drag the file there and specify which column you want to compare\n\n\n\nHere is an example\n\n![image](https://github.com/user-attachments/assets/b58589c5-758e-4b61-928a-eaccaf094676)\n\n# REF\n[1](https://github.com/valleyofdoom/TimerResolution)\n[2](https://xkln.net/blog/powershell-sleep-duration-accuracy-and-windows-timers/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluslower%2Fzwtimerresolution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluslower%2Fzwtimerresolution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluslower%2Fzwtimerresolution/lists"}