-
-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Windows sleep accuracy from 15ms to 15µs
- Loading branch information
Showing
16 changed files
with
189 additions
and
67 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "libc/nt/ntdllimport.h" | ||
.ntimp NtQueryTimerResolution,NtQueryTimerResolution | ||
|
||
.text.windows | ||
.ftrace1 | ||
NtQueryTimerResolution: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov __imp_NtQueryTimerResolution(%rip),%rax | ||
jmp __sysv2nt | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
ret | ||
#endif | ||
.endfn NtQueryTimerResolution,globl | ||
.previous |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "libc/nt/ntdllimport.h" | ||
.ntimp NtSetTimerResolution,NtSetTimerResolution | ||
|
||
.text.windows | ||
.ftrace1 | ||
NtSetTimerResolution: | ||
.ftrace2 | ||
#ifdef __x86_64__ | ||
push %rbp | ||
mov %rsp,%rbp | ||
mov __imp_NtSetTimerResolution(%rip),%rax | ||
jmp __sysv2nt | ||
#elif defined(__aarch64__) | ||
mov x0,#0 | ||
ret | ||
#endif | ||
.endfn NtSetTimerResolution,globl | ||
.previous |
Oops, something went wrong.