Added a logging system to show home much time it

took to do a certain part of the program
This commit is contained in:
Karma Riuk
2023-08-10 19:38:43 +02:00
parent 42cc4f8717
commit 144d3c2aed
6 changed files with 22 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package reader
import (
"bufio"
"maze-solver/utils"
"os"
)
@ -11,6 +12,7 @@ type TextReader struct {
}
func (r TextReader) Read() (*RawMaze, error) {
defer utils.Timer("Text Reader", 3)()
lines, err := getLines(r.Filename)
if err != nil {
return nil, err