mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
ad22336245
If a timer is requested with <=100ms resolution, request the high-res timer. Since the default Windows timer period is 15ms, this means a 100ms timer could fire at 115ms (15% late). We assume that timers longer than 100ms are a reasonable cutoff here. The high-res timers on Windows are still limited. Unfortuntely this means that our shortest duration 4ms timers can still be 25% late, but without a more complex timer system or spinning on the clock itself, we're somewhat bounded by the OS' scheduler itself.
39 lines
804 B
TOML
39 lines
804 B
TOML
# Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
[package]
|
|
name = "deno_web"
|
|
version = "0.135.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
readme = "README.md"
|
|
repository.workspace = true
|
|
description = "Collection of Web APIs"
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[dependencies]
|
|
async-trait.workspace = true
|
|
base64-simd = "0.8"
|
|
deno_core.workspace = true
|
|
encoding_rs.workspace = true
|
|
flate2.workspace = true
|
|
serde = "1.0.149"
|
|
tokio.workspace = true
|
|
uuid = { workspace = true, features = ["serde"] }
|
|
windows-sys.workspace = true
|
|
|
|
[dev-dependencies]
|
|
deno_bench_util.workspace = true
|
|
deno_console.workspace = true
|
|
deno_url.workspace = true
|
|
deno_webidl.workspace = true
|
|
|
|
[[bench]]
|
|
name = "encoding"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "timers_ops"
|
|
harness = false
|