mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Added timetrack
This commit is contained in:
parent
7264d9fdf7
commit
7922544b18
6
utils.go
6
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 := ""
|
||||
|
Loading…
Reference in New Issue
Block a user