mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-04 11:42:28 +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
|
@ -17,6 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/cosmo.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
|
@ -177,6 +178,8 @@ TEST(cosmo_args, dquote_plain_old_newline) {
|
|||
#define CHARSET "abc#'\"$.\\{} \r\n"
|
||||
|
||||
TEST(cosmo_args, fuzz) {
|
||||
if (IsWindows())
|
||||
return; // not worth it fs too slow
|
||||
char s[LENGTH + 1] = {0};
|
||||
for (int i = 0; i < ITERATIONS; ++i) {
|
||||
for (int j = 0; j < LENGTH; ++j)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue