Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintStats ¶
func PrintStats()
func SetDefault ¶
func StatTimeCurrentBlock ¶
func StatTimeCurrentBlock(name string) func()
func SwitchOffDebug ¶
func SwitchOffDebug()
func SwitchOnDebug ¶
func SwitchOnDebug()
func TimeCurrentBlock ¶
func TimeCurrentBlock(name string) func()
Types ¶
type RunningStatistics ¶
type RunningStatistics struct { N uint64 // contains filtered or unexported fields }
func NewRunningStatistics ¶
func NewRunningStatistics() *RunningStatistics
func (*RunningStatistics) Mean ¶
func (rs *RunningStatistics) Mean() time.Duration
func (*RunningStatistics) Push ¶
func (rs *RunningStatistics) Push(dur time.Duration)
func (*RunningStatistics) StandardDeviation ¶
func (rs *RunningStatistics) StandardDeviation() time.Duration
func (*RunningStatistics) Variance ¶
func (rs *RunningStatistics) Variance() time.Duration
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
func (*Timer) PrintStats ¶
func (t *Timer) PrintStats()
func (*Timer) StatTimeCurrentBlock ¶
func (*Timer) SwitchOffDebug ¶
func (t *Timer) SwitchOffDebug()
func (*Timer) SwitchOnDebug ¶
func (t *Timer) SwitchOnDebug()
func (*Timer) TimeCurrentBlock ¶
Click to show internal directories.
Click to hide internal directories.