Documentation
¶
Overview ¶
stat package total and lap support
Index ¶
- type ActionStat
- func (a *ActionStat) Add(n int64)
- func (a *ActionStat) GetCount() int64
- func (a *ActionStat) Inc()
- func (a *ActionStat) LapPerSec(min, max float64) float64
- func (a *ActionStat) NewLap()
- func (a *ActionStat) PerSec(min, max float64) float64
- func (a ActionStat) String() string
- func (a *ActionStat) UpdateLap()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionStat ¶
type ActionStat struct {
Total element
Laps []element
// contains filtered or unexported fields
}
func New ¶
func New() *ActionStat
func (*ActionStat) Add ¶
func (a *ActionStat) Add(n int64)
func (*ActionStat) GetCount ¶
func (a *ActionStat) GetCount() int64
func (*ActionStat) Inc ¶
func (a *ActionStat) Inc()
func (*ActionStat) LapPerSec ¶
func (a *ActionStat) LapPerSec(min, max float64) float64
func (*ActionStat) NewLap ¶
func (a *ActionStat) NewLap()
func (*ActionStat) PerSec ¶
func (a *ActionStat) PerSec(min, max float64) float64
func (ActionStat) String ¶
func (a ActionStat) String() string
func (*ActionStat) UpdateLap ¶
func (a *ActionStat) UpdateLap()
Click to show internal directories.
Click to hide internal directories.