mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-22 12:34:39 +00:00
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:
parent
ce5ab81760
commit
f7f2760520
17 changed files with 37 additions and 30 deletions
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue