Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
ee57cbfa
Commit
ee57cbfa
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
debug: add a timing instrument to the main search routine
parent
bd1fcc5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/search.c
+7
-0
src/search.c
with
7 additions
and
0 deletions
+7
-0
src/search.c
View file @
ee57cbfa
...
...
@@ -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
();
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment