summaryrefslogtreecommitdiff
path: root/Userland/DevTools/Profiler/main.cpp
diff options
context:
space:
mode:
authorDhruvMaroo <72350048+DhruvMaroo@users.noreply.github.com>2021-06-04 12:10:52 +0530
committerAndreas Kling <kling@serenityos.org>2021-06-04 09:30:22 +0200
commit6c3d601e87986153ae1b809d664327bf248e45f9 (patch)
treec404945a82c2f54b7de19011e79972f3718f6ff3 /Userland/DevTools/Profiler/main.cpp
parent7dab58ac3b82970f9ede959a45c67ae31f8f9832 (diff)
downloadserenity-6c3d601e87986153ae1b809d664327bf248e45f9.zip
Profiler: Show the duration of the time interval chosen
Diffstat (limited to 'Userland/DevTools/Profiler/main.cpp')
-rw-r--r--Userland/DevTools/Profiler/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/DevTools/Profiler/main.cpp b/Userland/DevTools/Profiler/main.cpp
index 0633e6e0c3..bf0bf6ea4a 100644
--- a/Userland/DevTools/Profiler/main.cpp
+++ b/Userland/DevTools/Profiler/main.cpp
@@ -186,6 +186,7 @@ int main(int argc, char** argv)
auto start = normalized_start_time - start_of_trace;
auto end = normalized_end_time - start_of_trace;
builder.appendff(", Selection: {} - {} ms", start, end);
+ builder.appendff(", Duration: {} ms", end - start);
}
statusbar.set_text(builder.to_string());
};