예제 #1
0
파일: Metrics.cs 프로젝트: lanicon/nesper
 /// <summary>
 ///     Creates a new <seealso cref="Counter" /> and registers it under the given class
 ///     and name.
 /// </summary>
 /// <param name="klass">the class which owns the metric</param>
 /// <param name="name">the name of the metric</param>
 /// <returns>a new <seealso cref="Counter" /></returns>
 public static Counter NewCounter(
     Type klass,
     string name)
 {
     return DEFAULT_REGISTRY.NewCounter(klass, name);
 }