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

Added timetrack

Former-commit-id: 64b9508f962a620b8091f0ba55d32600d57d76f7 [formerly 922f5f19d34b91a136623f060e834ae8030eb133] [formerly 7919da5b07010be47965356b04f6c7bb58eeee7f [formerly 226fceb7049d8532395e83b2c5af7014fd00cb3b [formerly 7922544b18]]]
Former-commit-id: e71d09a3676fc4e67f5d89101a66603c644a9828 [formerly ffe838e2556bbdbac45699343c9f5f371143b998]
Former-commit-id: 5dbb6f7298cedafed9bd6d379a1ef8c17485a5cf
Former-commit-id: 07f0143143
This commit is contained in:
Zack Scholl 2016-02-10 15:08:36 -05:00
parent bde2379a36
commit b8a8a783be

View File

@ -2,6 +2,7 @@ package main
import ( import (
"fmt" "fmt"
"log"
"math/rand" "math/rand"
"sort" "sort"
"strings" "strings"
@ -164,6 +165,11 @@ func getImportantVersions(p WikiData) []versionsInfo {
return r 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 { func rebuildTextsToDiffN(p WikiData, n int) string {
dmp := diffmatchpatch.New() dmp := diffmatchpatch.New()
lastText := "" lastText := ""