Expand description
This crate implements global, thread-safe counters.
Concerning performance, the general ranking is, from fastest to slowest:
- Flushing primitive counters
- Approximate primitive counters
- Exact primitive atomic counters
- Generic counter
Don’t forget to make your own benchmarks, as those are very specific to the computing system in general and, in this case, to the OS in specific.
Modules§
- generic
- This module contains a global, generic counter and the accompanying
Inc
trait. - primitive
- This module contains global counters for primitive integer types.
Macros§
- global_
counter - Creates a new global, generic counter, starting from the given value.
- global_
default_ counter - Creates a new generic, global counter, starting from its default value.