github.com/MetalBlockchain/metalgo@v1.11.9/utils/timer/meter.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package timer
     5  
     6  // Meter tracks the number of occurrences of a specified event
     7  type Meter interface {
     8  	// Notify this meter of a new event for it to rate
     9  	Tick()
    10  	// Return the number of events this meter is currently tracking
    11  	Ticks() int
    12  }