Method NewCounter
NewCounter()
Returns a new counter. The returned counter is not thread-safe.
Declaration
public static Counter NewCounter()
Returns
Type | Description |
---|---|
Counter |
NewCounter(Boolean)
Returns a new counter.
Declaration
public static Counter NewCounter(bool threadSafe)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | threadSafe |
|
Returns
Type | Description |
---|---|
Counter | A new counter. |