Commit ee57cbfa authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

debug: add a timing instrument to the main search routine

parent bd1fcc5f
Showing with 7 additions and 0 deletions
+7 -0
......@@ -494,6 +494,9 @@ void go_looking(void)
filestruct *was_current = openfile->current;
size_t was_current_x = openfile->current_x;
int didfind;
#ifdef DEBUG
clock_t start = clock();
#endif
came_full_circle = FALSE;
......@@ -509,6 +512,10 @@ void go_looking(void)
openfile->current_x == was_current_x)
statusbar(_("This is the only occurrence"));
#ifdef DEBUG
statusline(HUSH, "Took: %.2f", (double)(clock() - start) / CLOCKS_PER_SEC);
#endif
edit_redraw(was_current);
search_replace_abort();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment