MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / counterRate

Function counterRate

tests/loadtest/tools/queue_benchmark.go:637–642  ·  view source on GitHub ↗
(count int, durationMs float64)

Source from the content-addressed store, hash-verified

635}
636
637func counterRate(count int, durationMs float64) float64 {
638 if count <= 0 || durationMs <= 0 {
639 return 0
640 }
641 return float64(count) / (durationMs / 1000)
642}
643
644func boolRate(ok bool) float64 {
645 if ok {

Callers 1

buildSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected