コード例 #1
0
ファイル: Metrics.cs プロジェクト: lanicon/nesper
 /// <summary>
 ///     Creates a new <seealso cref="Timer" /> 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>
 /// <param name="durationUnit">the duration scale unit of the new timer</param>
 /// <param name="rateUnit">the rate scale unit of the new timer</param>
 /// <returns>a new <seealso cref="core.Timer" /></returns>
 public static Timer NewTimer(
     Type klass,
     string name,
     TimeUnit durationUnit,
     TimeUnit rateUnit)
 {
     return DEFAULT_REGISTRY.NewTimer(klass, name, durationUnit, rateUnit);
 }