MCPcopy Index your code
hub / github.com/pterm/pterm / WithShowTimer

Method WithShowTimer

spinner_printer.go:92–95  ·  view source on GitHub ↗

WithShowTimer shows how long the spinner is running.

(b ...bool)

Source from the content-addressed store, hash-verified

90
91// WithShowTimer shows how long the spinner is running.
92func (s SpinnerPrinter) WithShowTimer(b ...bool) *SpinnerPrinter {
93 s.ShowTimer = internal.WithBoolean(b)
94 return &s
95}
96
97// WithStartedAt sets the time when the SpinnerPrinter started.
98func (s SpinnerPrinter) WithStartedAt(t time.Time) *SpinnerPrinter {

Callers 2

introScreenFunction · 0.80

Calls 1

WithBooleanFunction · 0.92

Tested by 1