Metrics.NET icon indicating copy to clipboard operation
Metrics.NET copied to clipboard

Q - Is the returned instance of Metric.Timer(...) thread safe?

Open shay1e opened this issue 10 years ago • 0 comments

Is it safe to have a static Metric.Timer(...) field inside a class? Or should each class instance have it's own Timer? I'm asking because In my application there are many instances of the same class (say, User class) and I would like to avoid the overhead of initializing a Timer for each one, if possible.

shay1e avatar Aug 12 '15 08:08 shay1e