= Fixed lazy reloading

This commit is contained in:
Matthew Cech
2019-05-05 22:14:54 -07:00
parent d252cf54b0
commit cff03469ca
+5
View File
@@ -41,6 +41,8 @@ public class BenchmarkManager
// Rebuilds the files being monitored // Rebuilds the files being monitored
public void RebuildLookup() public void RebuildLookup()
{ {
long start = Instant.now().toEpochMilli();
synchronized(raw) synchronized(raw)
{ {
raw.clear(); raw.clear();
@@ -67,6 +69,9 @@ public class BenchmarkManager
BenchmarkLog.Warn("No " + extension + " files where found in " + directory); 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 // Re-evaluates and re-orders the input list based on the Levenshtein distance of the