mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
LibCore+Utilities: Replace ElapsedTimer precise flag with an enum
Previously, `true` was passed into the ElapsedTimer constructor if a precise timer was required. We now use an enum to more explicitly specify whether we would like a precise or a coarse timer.
This commit is contained in:
parent
0f168d9ca2
commit
679fe00d10
Notes:
sideshowbarker
2024-07-17 08:45:34 +09:00
Author: https://github.com/tcl3
Commit: 679fe00d10
Pull-request: https://github.com/SerenityOS/serenity/pull/23353
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/trflynn89 ✅
5 changed files with 13 additions and 8 deletions
|
@ -45,7 +45,7 @@ struct {
|
|||
size_t total_bytes_copied = 0;
|
||||
size_t total_blocks_in = 0, partial_blocks_in = 0;
|
||||
size_t total_blocks_out = 0, partial_blocks_out = 0;
|
||||
Core::ElapsedTimer timer { true };
|
||||
Core::ElapsedTimer timer { Core::TimerType::Precise };
|
||||
} statistics;
|
||||
|
||||
static void closing_statistics()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue