Skip to content

Commit

Permalink
FIXME: add artificial delay to see benchmark. PLEASE REMEMBER TO REMO…
Browse files Browse the repository at this point in the history
…VE THIS!!
  • Loading branch information
sermuns committed Jan 27, 2025
1 parent 408967c commit bd94951
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"fmt"
"os"
"time"

"github.com/sermuns/schemgo/drawing"
"github.com/sermuns/schemgo/parsing"
Expand Down Expand Up @@ -73,6 +74,7 @@ func writeSchematic(inContents []byte) (outContent []byte) {
renderElem(s, &entry.Element)
}
var buf bytes.Buffer
time.Sleep(time.Second)
s.End(&buf)
return buf.Bytes()
}

0 comments on commit bd94951

Please sign in to comment.