Class PCounter
Holds two performance counters, one process instance and one global instance.
Inheritance
object
PCounter
Namespace: ABB.Robotics
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class PCounter
Constructors
View SourcePCounter(string)
Creates a new performance counter object.
Declaration
public PCounter(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The counter name. |
Properties
View SourceGlobalValue
Gets the global value. (For test)
Declaration
public long GlobalValue { get; }
Property Value
| Type | Description |
|---|---|
| long |
ProcessValue
Gets the process value. (For test)
Declaration
public long ProcessValue { get; }
Property Value
| Type | Description |
|---|---|
| long |
Methods
View SourceDecrement()
Increments both counters.
Declaration
public void Decrement()
Increment()
Increments both the process and global counters.
Declaration
public void Increment()
Operators
View Sourceoperator --(PCounter)
Decrements the counter by one.
Declaration
public static PCounter operator --(PCounter counter)
Parameters
| Type | Name | Description |
|---|---|---|
| PCounter | counter | The counter to increment. |
Returns
| Type | Description |
|---|---|
| PCounter | This object. |
operator ++(PCounter)
This operator shall not be used to any calculations since it will always return 0.
Declaration
public static PCounter operator ++(PCounter counter)
Parameters
| Type | Name | Description |
|---|---|---|
| PCounter | counter | The counter to increment. |
Returns
| Type | Description |
|---|---|
| PCounter | This object. |