From: Steinar H. Gunderson Date: Sat, 17 Oct 2020 07:55:18 +0000 (+0200) Subject: Add the missing end timing if linear scan and --debug is used together. X-Git-Tag: 1.0.5~4 X-Git-Url: https://git.sesse.net/?p=plocate;a=commitdiff_plain;h=5905e207c8ca995c4ffeac138d0697dcf5ddc6cc Add the missing end timing if linear scan and --debug is used together. --- diff --git a/plocate.cpp b/plocate.cpp index 55e1934..e863edb 100644 --- a/plocate.cpp +++ b/plocate.cpp @@ -500,6 +500,8 @@ void do_search_file(const vector &needles, const char *filename) // the pattern and done a union of them, but that's a lot of // work for fairly unclear gain.) uint64_t matched = scan_all_docids(needles, fd, corpus); + dprintf("Done in %.1f ms, found %" PRId64 " matches.\n", + 1e3 * duration(steady_clock::now() - start).count(), matched); if (only_count) { printf("%" PRId64 "\n", matched); }