From 0b51d1a131198833894270e057967bdabec4d99c Mon Sep 17 00:00:00 2001 From: Jeremy Hertel Date: Sat, 25 Nov 2023 17:47:28 -0600 Subject: [PATCH] rosaline: print out elapsed time for go when using cli interface --- cmd/rosaline/interfaces/cli.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/rosaline/interfaces/cli.go b/cmd/rosaline/interfaces/cli.go index 633c332..8d535a3 100644 --- a/cmd/rosaline/interfaces/cli.go +++ b/cmd/rosaline/interfaces/cli.go @@ -85,6 +85,7 @@ func (i cliInterface) Loop() { results := i.searcher.Search(position, depth) fmt.Println("best move:", results.BestMove) fmt.Println("score:", results.Score) + fmt.Println("elapsed:", results.Time.Seconds()) } else if cmd == "evaluate" { score := i.evaluator.Evaluate(position) fmt.Println("score:", score)