mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
LibCore: Remove deprecated ElapsedTimer::elapsed()
This follows FIXME in the code.
This commit is contained in:
parent
69367194a6
commit
442629064b
Notes:
github-actions[bot]
2024-11-23 18:21:48 +00:00
Author: https://github.com/shlyakpavel
Commit: 442629064b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2528
3 changed files with 3 additions and 9 deletions
|
@ -51,7 +51,7 @@ GC::Ref<ClassicScript> ClassicScript::create(ByteString filename, StringView sou
|
|||
// 10. Let result be ParseScript(source, realm, script).
|
||||
auto parse_timer = Core::ElapsedTimer::start_new();
|
||||
auto result = JS::Script::parse(source, realm, script->filename(), script, source_line_number);
|
||||
dbgln_if(HTML_SCRIPT_DEBUG, "ClassicScript: Parsed {} in {}ms", script->filename(), parse_timer.elapsed());
|
||||
dbgln_if(HTML_SCRIPT_DEBUG, "ClassicScript: Parsed {} in {}ms", script->filename(), parse_timer.elapsed_milliseconds());
|
||||
|
||||
// 11. If result is a list of errors, then:
|
||||
if (result.is_error()) {
|
||||
|
@ -101,7 +101,7 @@ JS::Completion ClassicScript::run(RethrowErrors rethrow_errors, GC::Ptr<JS::Envi
|
|||
|
||||
// FIXME: If ScriptEvaluation does not complete because the user agent has aborted the running script, leave evaluationStatus as null.
|
||||
|
||||
dbgln_if(HTML_SCRIPT_DEBUG, "ClassicScript: Finished running script {}, Duration: {}ms", filename(), timer.elapsed());
|
||||
dbgln_if(HTML_SCRIPT_DEBUG, "ClassicScript: Finished running script {}, Duration: {}ms", filename(), timer.elapsed_milliseconds());
|
||||
}
|
||||
|
||||
// 7. If evaluationStatus is an abrupt completion, then:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue