package
0.0.0-20230203010516-6d4bf48beedd
Repository: https://github.com/onyx-protocol/onyx.git
Documentation: pkg.go.dev

# Functions

NewLatency returns a new latency histogram with the given duration limit and with three significant figures of precision.
NewRotatingLatency returns a new rotating latency recorder with n buckets of history.
PublishLatency publishes rl as an expvar inside the global latency map (which is itself published under the key "latency").

# Constants

Period is the size of a RotatingLatency bucket.

# Structs

A Latency records information about the aggregate latency of an operation over time.
A RotatingLatency holds a rotating circular buffer of Latency objects, that rotates once per Period time.