Added passed time

This commit is contained in:
kolaente 2019-10-20 18:09:11 +02:00
parent c588553733
commit 98643dd6f1
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -7,12 +7,15 @@ import (
"log" "log"
"os" "os"
"strings" "strings"
"time"
) )
func main() { func main() {
const listID = 19 const listID = 19
now := time.Now()
client := sdk.NewAPIClient(&sdk.Configuration{ client := sdk.NewAPIClient(&sdk.Configuration{
BasePath: "http://localhost:8080/api/v1", BasePath: "http://localhost:8080/api/v1",
DefaultHeader: make(map[string]string), DefaultHeader: make(map[string]string),
@ -182,7 +185,7 @@ outer:
} }
} }
log.Println("Done.") log.Printf("Done in %v", time.Since(now))
} }
func scanLines(path string) ([]string, error) { func scanLines(path string) ([]string, error) {