1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Added timetrack

This commit is contained in:
Zack Scholl 2016-02-10 15:08:36 -05:00
parent 7264d9fdf7
commit 7922544b18

View File

@ -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 := ""