func (m *SingleMeasurement) Get() float64 {
	m.mu.RLock()
	defer m.mu.RUnlock()
	return m.value
}
Get the current value.
package measurements
import (
	"fmt"
	"sync"
)
type SingleMeasurement struct {
	value float64
	mu    sync.RWMutex
}
func (m *SingleMeasurement) Add(value float64) (float64, bool) {
	m.mu.Lock()
	defer m.mu.Unlock()
	m.value = value
	return m.value, true
}