Skip to content

Commit

Permalink
rosaline: print out elapsed time for go when using cli interface
Browse files Browse the repository at this point in the history
  • Loading branch information
e0ff committed Nov 25, 2023
1 parent 89ec36f commit 0b51d1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/rosaline/interfaces/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0b51d1a

Please sign in to comment.