Documentation ¶
Overview ¶
Package timer provides a simple timer for measuring the duration of code execution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timer ¶ added in v0.0.46
type Timer struct {
// contains filtered or unexported fields
}
Timer is a simple timer for measuring the duration of code execution.
func Conditional ¶
Conditional returns a new timer that is only active if the condition is true.
func (*Timer) Checkpoint ¶ added in v0.0.46
Checkpoint prints the duration since the last checkpoint and resets the timer.
Click to show internal directories.
Click to hide internal directories.