mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 14:28:30 +00:00
Improve Windows sleep accuracy from 15ms to 15µs
This commit is contained in:
parent
b40140e6c5
commit
b490e23d63
16 changed files with 189 additions and 67 deletions
|
@ -224,6 +224,16 @@ NtStatus RtlUnlockHeap(int64_t heap);
|
|||
NtStatus RtlGetProcessHeaps(uint32_t count, void **out_Heaps);
|
||||
NtStatus RtlWalkHeap(int64_t heap, void *out_Info);
|
||||
|
||||
/*───────────────────────────────────────────────────────────────────────────│─╗
|
||||
│ cosmopolitan § new technology » beyond the pale » i am the time lorde ─╬─│┼
|
||||
╚────────────────────────────────────────────────────────────────────────────│*/
|
||||
|
||||
NtStatus NtSetTimerResolution(uint32_t DesiredResolution, bool32 SetResolution,
|
||||
uint32_t *out_CurrentResolution);
|
||||
NtStatus NtQueryTimerResolution(uint32_t *out_MinimumResolution,
|
||||
uint32_t *out_MaximumResolution,
|
||||
uint32_t *out_CurrentResolution);
|
||||
|
||||
#if ShouldUseMsabiAttribute()
|
||||
#include "libc/nt/thunk/ntdll.inc"
|
||||
#endif /* ShouldUseMsabiAttribute() */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue