adds abilit to report timing for execution

This commit is contained in:
2022-03-21 16:58:05 -05:00
parent cfc719dae3
commit ff9cc1349f
7 changed files with 35 additions and 0 deletions

View File

@ -7,6 +7,8 @@ import (
)
func getListData() []string {
defer timeTrack(time.Now(), "getListData")
var badDomains []string
listSimple := make(chan []string)
listComplex := make(chan []string)
@ -59,6 +61,8 @@ func getListData() []string {
}
func getData(urls []string) []byte {
defer timeTrack(time.Now(), "getData")
var listData []byte
for _, u := range urls {