Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chrono ¶
type Chrono struct {
// contains filtered or unexported fields
}
Chrono can be used to time things around various parts of the application
func (*Chrono) Elapsed ¶
Elapsed gets the duration elapsed between the time the chronometer was initialised. This method does not reset the internal clock, unless `Chrono.Start` is called.
func (*Chrono) StartContext ¶
StartContext starts the chronometer and ends it whenever the context is terminated returning the duration via a channel
func (*Chrono) StartDeferred ¶
StartDeferred starts the chronometer and ends it whenever the returned callback is invoked, returning the duration via a channel
Click to show internal directories.
Click to hide internal directories.