Log time to completion in editor-test
This commit is contained in:
parent
a7ec42371c
commit
2bbacf5636
1 changed files with 5 additions and 0 deletions
|
|
@ -135,6 +135,8 @@ fn main() {
|
||||||
default_text.to_string()
|
default_text.to_string()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let test_start = Instant::now();
|
||||||
|
|
||||||
//TODO: support bidi
|
//TODO: support bidi
|
||||||
for line in text.lines() {
|
for line in text.lines() {
|
||||||
log::debug!("Line {:?}", line);
|
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 mut wrong = 0;
|
||||||
let buffer_lines = buffer.text_lines();
|
let buffer_lines = buffer.text_lines();
|
||||||
for (line_i, line) in text.lines().enumerate() {
|
for (line_i, line) in text.lines().enumerate() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue