Skip to content

Commit

Permalink
miner: Pretty Print elapsed time (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
trianglesphere authored May 22, 2024
1 parent 5838916 commit 9dd6e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/payload_building.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func (w *worker) buildPayload(args *BuildPayloadArgs) (*Payload, error) {
log.Info("Stopping work on payload",
"id", payload.id,
"reason", stopReason,
"elapsed", time.Since(start).Milliseconds())
"elapsed", common.PrettyDuration(time.Since(start)))
}()

updatePayload := func() time.Duration {
Expand Down

0 comments on commit 9dd6e7c

Please sign in to comment.