From 5905e207c8ca995c4ffeac138d0697dcf5ddc6cc Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 17 Oct 2020 09:55:18 +0200 Subject: [PATCH] Add the missing end timing if linear scan and --debug is used together. --- plocate.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.39.2