accnt

package
v0.0.0-...-70d8496 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accnt_t

type Accnt_t struct {
	// nanoseconds
	Userns int64
	Sysns  int64
	// for getting consistent snapshot of both times; not always needed
	sync.Mutex
}

func (*Accnt_t) Add

func (a *Accnt_t) Add(n *Accnt_t)

func (*Accnt_t) Fetch

func (a *Accnt_t) Fetch() []uint8

func (*Accnt_t) Finish

func (a *Accnt_t) Finish(inttime int)

func (*Accnt_t) Io_time

func (a *Accnt_t) Io_time(since int)

func (*Accnt_t) Now

func (a *Accnt_t) Now() int

func (*Accnt_t) Sleep_time

func (a *Accnt_t) Sleep_time(since int)

func (*Accnt_t) Systadd

func (a *Accnt_t) Systadd(delta int)

func (*Accnt_t) To_rusage

func (a *Accnt_t) To_rusage() []uint8

func (*Accnt_t) Utadd

func (a *Accnt_t) Utadd(delta int)

Jump to

Keyboard shortcuts

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