Skip to content

Commit

Permalink
measure start time as well
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanasati committed Jan 18, 2024
1 parent 24f4e39 commit ce58898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ func RunCommand(runOpts *RunOptions) *RunResult {
}

var e error
init := time.Now()
if e = cmd.Start(); e != nil {
runResult.err = &failedProcessError{command: runOpts.command, err: e, where: "starting"}
}
init := time.Now()
e = cmd.Wait()
duration := time.Since(init)

Expand Down

0 comments on commit ce58898

Please sign in to comment.