From 2bbacf56364ddc44ac7608089f256f0f59d7df74 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 20 Oct 2022 09:16:39 -0600 Subject: [PATCH] Log time to completion in editor-test --- examples/editor-test/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/editor-test/src/main.rs b/examples/editor-test/src/main.rs index f05d402..7f38592 100644 --- a/examples/editor-test/src/main.rs +++ b/examples/editor-test/src/main.rs @@ -135,6 +135,8 @@ fn main() { default_text.to_string() }; + let test_start = Instant::now(); + //TODO: support bidi for line in text.lines() { log::debug!("Line {:?}", line); @@ -200,6 +202,9 @@ fn main() { } } + let test_elapsed = test_start.elapsed(); + log::info!("Test completed in {:?}", test_elapsed); + let mut wrong = 0; let buffer_lines = buffer.text_lines(); for (line_i, line) in text.lines().enumerate() {