speed

package
v0.0.0-...-b487b65 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package speed implements speed counter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Speed

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

Speed counter.

func Start

func Start(ctx context.Context, name string) *Speed

Start a new speed counter.

func (*Speed) Inc

func (s *Speed) Inc(v int)

Inc increments the speed counter by v.

Jump to

Keyboard shortcuts

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