A mutable, integer-valued counter.
Moduleekg-core-0.1.2.0Haskell2010
System.Metrics.Counter
This module defines a type for mutable, integer-valued counters. Counters are non-negative, monotonically increasing values and can be used to track e.g. the number of requests served since program start. All operations on counters are thread-safe.
- 1 type
- 4 values
- Packageekg-core-0.1.2.0
- Exports5
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceCounter.hs
Create a new, zero initialized, counter.
Get the current value of the counter.
Increase the counter by one.
Add the argument to the counter.