summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-25 11:11:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-25 11:11:06 +0100
commit818704361d78af14e98f90e9a5e65a5acc4219c2 (patch)
tree53b513efe84b93eebcdddf346262d38ee21ff27c /editor
parent72aa709c08c592b4ce32cb7936c199202c42618a (diff)
add time display to path test
Diffstat (limited to 'editor')
-rw-r--r--editor/tests/path-test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/tests/path-test.cpp b/editor/tests/path-test.cpp
index 1b0f5f37..4ed750ec 100644
--- a/editor/tests/path-test.cpp
+++ b/editor/tests/path-test.cpp
@@ -236,6 +236,10 @@ void path_test::draw_ui(app& a, float width)
do_column("length");
std::snprintf(buf, std::size(buf), "%d", (int)res.path.size());
text(buf);
+
+ do_column("time");
+ std::snprintf(buf, std::size(buf), "%.1f ms", (double)(1000 * res.time));
+ text(buf);
}
}