Crate global_counter

Source
Expand description

This crate implements global, thread-safe counters.

Concerning performance, the general ranking is, from fastest to slowest:

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.