Documentation ¶
Index ¶
- type AtomicStat
- func (s *AtomicStat) AddDuration(duration time.Duration)
- func (s *AtomicStat) AddTime(start time.Time) time.Time
- func (s *AtomicStat) GetAverage() float64
- func (s *AtomicStat) GetAverageString() string
- func (s *AtomicStat) GetCount() int32
- func (s *AtomicStat) GetDuration() time.Duration
- func (s *AtomicStat) String() string
- type AtomicStats
- func (s *AtomicStats) AddDuration(key string, duration time.Duration) *AtomicStats
- func (s *AtomicStats) AddTime(key string, start time.Time) time.Time
- func (s *AtomicStats) GetAverageDuration() time.Duration
- func (s *AtomicStats) GetCount() int32
- func (s *AtomicStats) GetMap() map[string]*AtomicStat
- func (s *AtomicStats) GetTotalDuration() time.Duration
- func (s *AtomicStats) GetTotalDurationAndCount() (time.Duration, int32)
- func (s *AtomicStats) String(indent string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicStat ¶
type AtomicStat struct {
// contains filtered or unexported fields
}
func NewAtomicStat ¶
func NewAtomicStat() *AtomicStat
func (*AtomicStat) AddDuration ¶
func (s *AtomicStat) AddDuration(duration time.Duration)
func (*AtomicStat) GetAverage ¶
func (s *AtomicStat) GetAverage() float64
func (*AtomicStat) GetAverageString ¶
func (s *AtomicStat) GetAverageString() string
func (*AtomicStat) GetCount ¶
func (s *AtomicStat) GetCount() int32
func (*AtomicStat) GetDuration ¶
func (s *AtomicStat) GetDuration() time.Duration
func (*AtomicStat) String ¶
func (s *AtomicStat) String() string
type AtomicStats ¶
type AtomicStats struct {
// contains filtered or unexported fields
}
func NewAtomicStats ¶
func NewAtomicStats() *AtomicStats
func (*AtomicStats) AddDuration ¶
func (s *AtomicStats) AddDuration(key string, duration time.Duration) *AtomicStats
func (*AtomicStats) GetAverageDuration ¶
func (s *AtomicStats) GetAverageDuration() time.Duration
func (*AtomicStats) GetCount ¶
func (s *AtomicStats) GetCount() int32
func (*AtomicStats) GetMap ¶
func (s *AtomicStats) GetMap() map[string]*AtomicStat
func (*AtomicStats) GetTotalDuration ¶ added in v1.0.29
func (s *AtomicStats) GetTotalDuration() time.Duration
func (*AtomicStats) GetTotalDurationAndCount ¶ added in v1.0.29
func (s *AtomicStats) GetTotalDurationAndCount() (time.Duration, int32)
func (*AtomicStats) String ¶
func (s *AtomicStats) String(indent string) string
Click to show internal directories.
Click to hide internal directories.