github.com/MetalBlockchain/metalgo@v1.11.9/utils/math/meter/factory.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package meter 5 6 import "time" 7 8 // Factory returns new meters. 9 type Factory interface { 10 // New returns a new meter with the provided halflife. 11 New(halflife time.Duration) Meter 12 }