diff --git a/utils.go b/utils.go index 2e151dc..992220c 100644 --- a/utils.go +++ b/utils.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "log" "math/rand" "sort" "strings" @@ -164,6 +165,11 @@ func getImportantVersions(p WikiData) []versionsInfo { return r } +func timeTrack(start time.Time, name string) { + elapsed := time.Since(start) + log.Printf("%s took %s", name, elapsed) +} + func rebuildTextsToDiffN(p WikiData, n int) string { dmp := diffmatchpatch.New() lastText := ""