Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultFormat = template.Must(template.New("").Parse("{{range $c, $t := .}}{{$c}}: {{$t}}\n{{end}}"))
DefaultFormat is a default format string used by Summary.
View Source
var DefaultRun = NewTimedRun()
DefaultRun is the default "singleton" TimedRun instance.
Functions ¶
Types ¶
type TimedRun ¶
type TimedRun struct {
// contains filtered or unexported fields
}
TimedRun provides a running store of how long is spent in each category.
func NewTimedRun ¶
func NewTimedRun() *TimedRun
NewTimedRun returns an initialized TimedRun instance.
Click to show internal directories.
Click to hide internal directories.