improve sleep timer resolution on windows

This commit is contained in:
dranke committed 2022-05-08 18:08:29 +02:00
1 parent b2b990333e
commit 8e9bb002bc
3 files changed
+7 -2

No files matched your search

+3
View File
@@ -59,6 +59,9 @@ struct UW8WatchDog {
impl MicroW8 {
pub fn new() -> Result<MicroW8> {
#[cfg(target_os = "windows")]
unsafe { winapi::um::timeapi::timeBeginPeriod(1); }
let engine = wasmtime::Engine::new(wasmtime::Config::new().interruptable(true))?;
let loader_module =