actionstat

package module
v0.0.0-...-d9bf9ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2015 License: Apache-2.0 Imports: 3 Imported by: 2

README

actionstat

golang statistics for activity

Documentation

Overview

stat package total and lap support

Index

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL