From 7922544b18be98c93474b5dc16d3520e5ee4a919 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Wed, 10 Feb 2016 15:08:36 -0500 Subject: [PATCH] Added timetrack --- utils.go | 6 ++++++ 1 file changed, 6 insertions(+) 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 := ""