timex

package
v0.0.0-...-052ef2a Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const NanoTimeCost = time.Nanosecond * 20

Variables

This section is empty.

Functions

func Fastnow

func Fastnow() int64

func NanoTime

func NanoTime() int64

func Now

func Now() int64

func Since

func Since(start int64) int64

func SinceDur

func SinceDur(start int64) time.Duration

func WallTime

func WallTime() (int64, int32)

Types

type StopWatch

type StopWatch int64

func NewStopWatch

func NewStopWatch() StopWatch

func (*StopWatch) Elapsed

func (s *StopWatch) Elapsed() int64

func (*StopWatch) ElapsedDur

func (s *StopWatch) ElapsedDur() time.Duration

func (*StopWatch) ElapsedMicros

func (s *StopWatch) ElapsedMicros() int64

func (*StopWatch) ElapsedMillis

func (s *StopWatch) ElapsedMillis() int64

func (*StopWatch) Start

func (s *StopWatch) Start()

func (*StopWatch) Stop

func (s *StopWatch) Stop() int64

func (*StopWatch) StopDur

func (s *StopWatch) StopDur() time.Duration

Jump to

Keyboard shortcuts

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