We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4266eb commit 33311efCopy full SHA for 33311ef
src/browser/html/performance.zig
@@ -34,7 +34,7 @@ pub const Performance = struct {
34
const ms_resolution = 100;
35
36
fn limited_resolution_ms(nanoseconds: u64) f64 {
37
- const elapsed_at_resolution = ((nanoseconds / std.time.ns_per_ms) + ms_resolution / 2) / ms_resolution * ms_resolution;
+ const elapsed_at_resolution = ((nanoseconds / std.time.ns_per_us) + ms_resolution / 2) / ms_resolution * ms_resolution;
38
const elapsed = @as(f64, @floatFromInt(elapsed_at_resolution));
39
return elapsed / @as(f64, std.time.us_per_ms);
40
}
0 commit comments