feat: use tinymist_std::time for wasm32 targets (#2028)

`std::time` are not implemented for wasm32 targets, so we should use the
time crate made by ourselves.
This commit is contained in:
Myriad-Dreamin 2025-08-12 04:40:04 +08:00 committed by GitHub
parent ce5ab81760
commit f7f2760520
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 37 additions and 30 deletions

View file

@ -1089,7 +1089,7 @@ impl SharedContext {
let entry = entry.entry(query).or_default();
QueryStatGuard {
bucket: entry.clone(),
since: std::time::SystemTime::now(),
since: tinymist_std::time::Instant::now(),
}
}