timer

package
v0.0.0-...-7d312d8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: BSD-3-Clause Imports: 3 Imported by: 19

Documentation

Overview

timer makes timing operations easier.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timer

type Timer struct {
	Begin  time.Time
	Name   string
	Metric updateable
}

func New

func New(name string) *Timer

func NewWithMetric

func NewWithMetric(name string, m metrics2.Float64Metric) *Timer

func NewWithMetricOnly

func NewWithMetricOnly(m metrics2.Float64Metric) *Timer

func NewWithSummary

func NewWithSummary(name string, m metrics2.Float64SummaryMetric) *Timer

func NewWithSummaryOnly

func NewWithSummaryOnly(m metrics2.Float64SummaryMetric) *Timer

func (Timer) Stop

func (t Timer) Stop() time.Duration

Jump to

Keyboard shortcuts

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