From cff03469cae8bf0a0a068a4409073534ac7ddd32 Mon Sep 17 00:00:00 2001 From: Matthew Cech Date: Sun, 5 May 2019 22:14:54 -0700 Subject: [PATCH] = Fixed lazy reloading --- src/core/benchmark/BenchmarkManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/benchmark/BenchmarkManager.java b/src/core/benchmark/BenchmarkManager.java index 14243cd..5404dd3 100644 --- a/src/core/benchmark/BenchmarkManager.java +++ b/src/core/benchmark/BenchmarkManager.java @@ -41,6 +41,8 @@ public class BenchmarkManager // Rebuilds the files being monitored public void RebuildLookup() { + long start = Instant.now().toEpochMilli(); + synchronized(raw) { raw.clear(); @@ -67,6 +69,9 @@ public class BenchmarkManager BenchmarkLog.Warn("No " + extension + " files where found in " + directory); } } + + long end = Instant.now().toEpochMilli(); + BenchmarkLog.Log("Rebuilt data in " + (end - start) + "ms"); } // Re-evaluates and re-orders the input list based on the Levenshtein distance of the