Documentation ¶ Index ¶ Constants type Earn func (earn *Earn) Average(i atomic.Int64) float64 func (earn *Earn) Mark(e, p float64, elapse Elapse) func (earn *Earn) Speak() type Elapse func NewElapse() Elapse func (elapse Elapse) Gap() []float64 func (elapse Elapse) PushNow() Elapse func (elapse Elapse) RawGap() Elapse func (elapse Elapse) Sum() int64 Constants ¶ View Source const MicroMultiplier = 1e6 Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Earn ¶ type Earn struct { Elapse Estimates, Profits, Duration, Count atomic.Int64 } func (*Earn) Average ¶ func (earn *Earn) Average(i atomic.Int64) float64 func (*Earn) Mark ¶ func (earn *Earn) Mark(e, p float64, elapse Elapse) func (*Earn) Speak ¶ func (earn *Earn) Speak() type Elapse ¶ type Elapse []int64 func NewElapse ¶ func NewElapse() Elapse func (Elapse) Gap ¶ func (elapse Elapse) Gap() []float64 func (Elapse) PushNow ¶ func (elapse Elapse) PushNow() Elapse func (Elapse) RawGap ¶ func (elapse Elapse) RawGap() Elapse func (Elapse) Sum ¶ func (elapse Elapse) Sum() int64 Source Files ¶ View all Source files earn.go Click to show internal directories. Click to hide internal directories.