xlib

package
v0.0.0-...-cd93eb8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2017 Delos Development Foundation and contributors. Licensed under the Apache License, Version 2.0. See the COPYING file at the root of this distribution or at http://www.apache.org/licenses/LICENSE-2.0

Copyright 2017 Delos Development Foundation and contributors. Licensed under the Apache License, Version 2.0. See the COPYING file at the root of this distribution or at http://www.apache.org/licenses/LICENSE-2.0

Index

Constants

View Source
const FLUSH_INTERVAL = 5 * time.Second // statistic cycle
View Source
const (
	FUNC_MAX_NUM = iota
)

Variables

This section is empty.

Functions

func CheckItfcNil

func CheckItfcNil(itfc interface{}) bool

func Start

func Start()

Types

type CountTime

type CountTime struct {
	// contains filtered or unexported fields
}

type StStatistic

type StStatistic struct {
	// contains filtered or unexported fields
}

func CountSlc

func CountSlc(index int) *StStatistic

func (*StStatistic) Add

func (ss *StStatistic) Add(num int64)

func (*StStatistic) Begin

func (ss *StStatistic) Begin() func()

return endFunc

func (*StStatistic) End

func (ss *StStatistic) End(endFunc func())

func (*StStatistic) Init

func (ss *StStatistic) Init(name string, threshold time.Duration)

func (*StStatistic) Reset

func (ss *StStatistic) Reset()

func (*StStatistic) String

func (ss *StStatistic) String() string

Jump to

Keyboard shortcuts

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